if (Page.IsValid) { lblTxt.Text = "Page is Valid"; } else { lblTxt.Text = "Page is not Valid"; }
var