private void ValidateBtn_Click(Object Sender, EventArgs E) { Page.Validate(); if (Page.IsValid == true) // yes, it is written this way in the MSDN documentation lblOutput.Text = "Page is Valid!"; else lblOutput.Text = "Some required fields are empty."; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)