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
What is a server cookie?
What are triggers of an updatepanel?
What websites use asp.net?
What is the difference between union and structure?
Explain the use of duration attribute of @outputcache page directive.
Why asp.net mvc is better than asp.net? : Asp.Net MVC
To redirect the user to another page which method do we use without performing a round trip to the client?
Why is global asax is used?
In which event of the page life cycle, is the viewstate available?
What is a web server? What are the load limits in it?
What are uri parameters?
How do you deploy your asp.net application?
What is preprocessor in .net?
What are httphandlers and httpmodules and difference between them?
How can we identify that the Page is Post Back?