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 caching? What are different ways of caching in asp.net?
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?
Distinguish between Server-side and Client-side code with its functionality?
What is difference between viewstate and session in asp net?
9. Why should we hire you over the others waiting to be interviewed?
In which event are the controls fully loaded?
I’m having some trouble with cas. How can I diagnose my problem?
What is the basic difference between asp and asp.net?
Write code to send e-mail from an asp.net application?
What is distributed system in asp.net?
Does google crawl redirects?
What are the navigation ways between pages available in ASP.NET?
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?
What is Razor View Engine
What are the versions of garbage collection?