Quote:
Originally Posted by DrBunchman
You can't remove anything from the URL but you can redirect to the first URL which will have the same effect. Either use Javascript in the buttons onclick event or set the target of the form that contains the Ok button to the first URL.
Dr B
thanks for reply but page is not redirect
i use javascript code
- function divHid()
-
{
-
document.getElementById('div1').style.visibility='Hidden';
-
// myUrl="purchase/productdetail_EMail.asp?cgmain=" & mprimarycatId & "%26cgsub=" & msubcatId & "%26prodid=" & mprodId
-
//alert(purchase/productdetail_EMail.asp?cgmain="& mprimarycatId & "%26cgsub=" & msubcatId & "%26prodid=" & mprodId);
-
//document.getElementById('div1').action=("purchase/productdetail_EMail.asp?cgmain="& mprimarycatId & "%26cgsub=" & msubcatId & "%26prodid=" & mprodId);
-
-
}
all comented line I use but not redirect page
I also use
<%Response.Redirect (myUrl)%>
in Javascript function divHid()
but button stop working how to redirect that page