Is it possible to do a redirect from Javascript, and pass to it a value
that is in your server side code, such as a ViewState value?
Patrice - 15 Oct 2007 13:08 GMT
"redirect" is generally used server side.
document.location.href allows to point the browser to another URL. Or you
could change the action property to submit data on another page ? Or it
could be an AJAX call etc...
You may want to explain what you are trying do (I mean the functionality you
are trying to implement rather than how to implement the solution you seems
to have in mind for your problem).
This way one could suggest a possibly better approach or we'll better
understand what is this "redirect" you are talking about....
> Is it possible to do a redirect from Javascript, and pass to it a value
> that is in your server side code, such as a ViewState value?
>
> *** Sent via Developersdex http://www.developersdex.com ***
Alexey Smirnov - 15 Oct 2007 13:09 GMT
> Is it possible to do a redirect from Javascript, and pass to it a value
> that is in your server side code, such as a ViewState value?
js-redirect can be done using location.href:
window.location.href=page.aspx?id=123
and you can take the value in ASP.NET using Request.QueryString