
Originally Posted by
micky
I think they use javascript to fire, so if the js is disables, then they might not fire and hence the need for server side validation.
They use JavaScript to fire the client-side validation, but using Page.IsValid on the server will fire the server-side validation that is defined by each validation control:
Code:
Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnSave.Click
If Page.IsValid Then
' Code to save the record here
End If
End Sub
Bookmarks