Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2007

Tip: Looking for answers? Try searching our database.

Passing a Javascript value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Maury - 03 Mar 2007 17:58 GMT
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
Laurent Bugnion [MVP] - 03 Mar 2007 18:52 GMT
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
Signature

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.