Friday, November 28, 2008

ASP.NET validation problem with Response.Redirect

What is the correct why of doing validation? Why the the form doesn't validated if Response.Redirect code sit under the command button?


answer:

if(Page.IsValid){

Response.Redirect("abc.aspx");

}

Otherwise, the page do not have chance to be validated.

No comments: