Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 12th, 2006, 11:52 PM
Authorized User
 
Join Date: Feb 2006
Location: Karur, Tamildau, India.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default access javascript global variable in code behind

Hi all,

How can I access a javascript global variable data which is located in page1.aspx from another page's(say page2.aspx) codebehind.

Anyone knows it please help me.





__________________
Regards,
dsekar_nat
  #2 (permalink)  
Old March 14th, 2006, 01:39 AM
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
As far as my knowledge is concerned, javascript runs on client side and .aspx pages run on server so its almost impossible to read the javascript value programatically from .aspx file. Work arounds are to pass the value using a query string to page2.aspx or write a cookie and read it from page2.aspx page.

Regards,
Sai Puli.



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to declare the global variable in global.asax? calyn_gately ASP.NET 3.5 Basics 0 August 6th, 2008 08:06 PM
Access ASP code inside Javascript deean JSP Basics 1 June 20th, 2008 02:00 PM
comapring global variable value to local variable amhicraig XSLT 6 December 5th, 2007 12:16 PM
Global Access to a Variable ? navdeep C# 15 July 19th, 2007 08:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.