LoadValidators
LoadValidators Example
@inherits ControlComponent
@code {
protected override void OnLoad(object sender, EventArgs e)
{
if (!this.Page.IsPostBack)
{
this.NavigationManager.LocationChanged += this.NavigationManager_LocationChanged;
}
}
protected void NavigationManager_LocationChanged(object sender, LocationChangedEventArgs e)
{
this.ClientScript.RegisterStartupScript(this.GetType(), "LoadValidators"
, @"
if (typeof(DotNet_LoadValidators) == 'function') {
DotNet_LoadValidators();
}
");
}
}