Can't be this hard can it!? I just want to change window.location onclientclick of a linkbutton and set this from code behind.
lb.OnClientClick = "window.location = 'Contact.aspx'";
Not working, just reloads the current page.
lb.OnClientClick = "window.location = '" + Server.MapPath("Contact.aspx") + "'";
Seems to resolve the url correctly (the dev folder on my C drive) but is denying me access!?
Example of how to use dynamically:
also this should work
Original post:
If it is in the code behind just use Transfer
and this will pass all the form information:
MS also has good documentation on all your options here