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
Explain about Application and Session Events ?
What is difference between Server.Transfer and Response.Redirect in ASP.NET?
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
What are the HTML server controls in ASP.NET?
How is it possible for .NET to support many languages?
what is meant by sitemapnode ?
Do you know about caching with the datasource controls?
What r the asp.net list controls and difference between them?
What is difference between View State and Hidden Field in ASP.NET?
How does session work?
What is the advantage of using Windows authentication in a Web application?
What is the difference between a page theme and a global theme?
What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
Elaborate differentiation between ViewState and SessionState?
How many types of Cookies are available in ASP.NET?