ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,179 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
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>