A community member has associated this post with a similar question:
how to render razor page to another based on provide logic to login

Only moderators can edit this content.

How to render a razor page to another razorpage based on its conditions to login

Surya Chandra Mohan 20 Reputation points
2024-04-16T05:30:39.0866667+00:00
Blazor syntax - 
@if (IsPhoneNumberPresent)
{
<RegistrationForm LoginModel="new OtpRegisterVm { Username = LoginPhoneNumber, CountryCode = CountryCode}" /> 
} 
else 
{
<RegistrationForm /> 
}
Razor syntax- 
<div class="px-6 pb-8 pt-3 rounded-t-0">
@if (Model.IsPhoneNumberPresent)
{
<RegistrationForm LoginModel="new OtpRegisterVm { Username = LoginPhoneNumber, CountryCode = CountryCode}" />
}
else
{
<RegistrationForm />
}
</div>
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,179 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
0 comments No comments
{count} votes