Home All Groups Group Topic Archive Search About

Passing a Javascript value

Author
3 Mar 2007 5:58 PM
Maury
Hello,
I'm trying to pass a Javascript variable (that the user on an asp.net
page changes dinamically)
to a server-side function...
some hints?
Thanks

Author
3 Mar 2007 6:52 PM
Laurent Bugnion [MVP]
Hi,

Maury wrote:
> Hello,
> I'm trying to pass a Javascript variable (that the user on an asp.net
> page changes dinamically)
> to a server-side function...
> some hints?
> Thanks

The typical way to solve this is to use a hidden field (if you use POST,
which is usually the case in ASP.NET) or a parameter in the URL (if you
use GET).

Then, on the server, use either Request.Form (POST) or
Request.QueryString (GET)

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

AddThis Social Bookmark Button