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
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