I have a piece of code that on save click it validates the users data input.
This works fine. If the data is not correct it will pop the RadAlert. The issue is if the user does not leave the screen and selects another entry from the grid, it pops the Radalert with every update.
The pages uses RadAjaxManager , RadWindows manager, and acouple of RadGrids. I only want the RadAlert to show when the save button is clicked and there is an error in the data collected.
If myErrorMsg.Length > 0 Then |
'myErrorMsg.Insert(0, "Please fix the following errors: <br/>", 1) |
'RadAjaxManager1.Alert(myErrorMsg.ToString) |
ScriptManager.RegisterStartupScript(Page, GetType(Page), "RadAlertScript", "Sys.Application.add_load(function(){radalert('" & myErrorMsg.ToString & "',330,210,'Please fix the following errors: ');});", True) |
End If |
The pages uses RadAjaxManager , RadWindows manager, and acouple of RadGrids. I only want the RadAlert to show when the save button is clicked and there is an error in the data collected.