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 caching? What are different ways of caching in asp.net?

669


i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?

1853


Distinguish between Server-side and Client-side code with its functionality?

632


What is difference between viewstate and session in asp net?

568


9. Why should we hire you over the others waiting to be interviewed?

2147






In which event are the controls fully loaded?

574


I’m having some trouble with cas. How can I diagnose my problem?

603


What is the basic difference between asp and asp.net?

529


Write code to send e-mail from an asp.net application?

556


What is distributed system in asp.net?

553


Does google crawl redirects?

532


What are the navigation ways between pages available in ASP.NET?

580


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1414


What is Razor View Engine

614


What are the versions of garbage collection?

1464