what does Page.IsValid in asp.net

Answer Posted / ranjit singh

true if page validation succeeded; otherwise, false
private void ValidateBtn_Click(Object Sender, EventArgs E)
{
Page.Validate();
if (Page.IsValid == true)
lblOutput.Text = "Page is Valid!";
else
lblOutput.Text = "Some required fields are empty.";
}

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a server cookie?

501


What are triggers of an updatepanel?

555


What websites use asp.net?

526


What is the difference between union and structure?

507


Explain the use of duration attribute of @outputcache page directive.

626






Why asp.net mvc is better than asp.net? : Asp.Net MVC

501


To redirect the user to another page which method do we use without performing a round trip to the client?

539


Why is global asax is used?

614


In which event of the page life cycle, is the viewstate available?

527


What is a web server? What are the load limits in it?

592


What are uri parameters?

546


How do you deploy your asp.net application?

540


What is preprocessor in .net?

537


What are httphandlers and httpmodules and difference between them?

527


How can we identify that the Page is Post Back?

559