Passing a Javascript value

M

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
 
L

Laurent Bugnion [MVP]

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top