Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validation control problem

Status
Not open for further replies.

someTimeOnly

Technical User
Oct 12, 2003
78
PK
when i run my project locally, it's validation controls perform validation but when i upload it to server it's validation controls:

1. perform validation when I don't use any coding in mysomebutton.

2. do not perform validation when mysomebutton has coding of response.redirect("tosomepage.aspx",false)
 
ok i was missing
Code:
private void button_Click(object sender, EventArgs e)
{
   if[COLOR=green](Page.IsValid)[/color]
   {
      Response.Redirect("somepage.aspx",false);
   }
}

But how to make validation be performed at client side.
 
>>1. perform validation when I don't use any coding in mysomebutton.

2. do not perform validation when mysomebutton has coding of response.redirect("tosomepage.aspx",false)


confusing...

Known is handfull, Unknown is worldfull
 
Sorry everyone for the mess I spread up there.

Actually, the problem I was facing, was that I was not aware that every control(almost) has a property CausesValidation, that is true bydefault. So every control with CausesValidation property true, will cause validatation, and thus no need to use Page.IsValid.

Little knowledge is a dangerous thing.

Once again sorry everyone and vbkris.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top