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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Valiadtion Qeustion

Status
Not open for further replies.

romh

Programmer
Jan 3, 2003
297
US
Hi, I have form validation in an aspx page. Everything works fine except that in this page (its the page where he puts first name, last name etc...), I include a button which allows the user to go back and change the item (shopping cart item) that he has chosen. If the user has not filled the form completely according to validation rules, the code which opens the change item page, will not fire, because the validation does not allow it.
The code that switches back to the change item screen uses the Server.Transfer method. Here it is.

if(Page.IsValid || !Page.IsValid)
{
Session["Pointer"] = "CustomerInfo.aspx";
Server.Transfer("SelectPlan.aspx");
}

I tried adding tyhe Page.IsValid stuff, but that didn;t help.

Thanks
 
This is not the ASP.NET forum. You should post your question there.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top