Loading...

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();
}
");
    }
}
Copyright © 2024 Jurio li All rights reserved.
An unhandled error has occurred. Reload 🗙