473,327 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

accessing a value in all the pages

I want to acess a string value from one of my asp pages and write it in
all other pages. am new in asp leave alone asp.net how would i do that
in asp
help

Jun 6 '06 #1
2 1148

ti******@googlemail.com wrote:
I want to acess a string value from one of my asp pages and write it in
all other pages. am new in asp leave alone asp.net how would i do that
in asp
help


This really depends on you actual scenario where is the initial value
coming from how long does it need to be persisted etc is it shared
accross sessions? etc? A few obvious methods would include:

1) Initial page sets value in database, subsequent pages retrieve value
from database.
2) Initial page sets session variable, subsequent pages retrieve
session variable.
3) Initial page sets cookie value, subsequent pages retrieve cookie
value.

Richard

Jun 6 '06 #2
Richard Brown wrote:
ti******@googlemail.com wrote:
I want to acess a string value from one of my asp pages and write it
in all other pages. am new in asp leave alone asp.net how would i do
that in asp
help


This really depends on you actual scenario where is the initial value
coming from how long does it need to be persisted etc is it shared
accross sessions? etc? A few obvious methods would include:

1) Initial page sets value in database, subsequent pages retrieve
value from database.
2) Initial page sets session variable, subsequent pages retrieve
session variable.
3) Initial page sets cookie value, subsequent pages retrieve cookie
value.

2a) Initial page sets Application variable, subsequent pages retrieve
application variable
4) Initial page uses FSO or MSXML to create a server-side text file
which is accessed by subsequent pages

In asp.Net, all the above apply. In addition, you can use the system
Cache object.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jun 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: niju | last post by:
Hi there, I have three web pages (A,B,C). I need to prevent users accessing page B and C without accessing A. What would be the best way to achieve this rule? Many Thanks Niju
19
by: k.karthikit | last post by:
Hello all, In some hidden variable (<input type="hidden" name="hiddenId" value="test" /> ,i stored some value.I accessed the value "test" using var id = document.getElementById( 'hiddenId' );...
3
by: judy.j.miller | last post by:
Does anyone know why i can't access a form element value using dot notation in firefox, when i'm in a function. Works ok in the body. I'm trying to do this: var FarTemp = faren.temp.value; I...
3
ADezii
by: ADezii | last post by:
One frequently asked question at TheScripts is how to set focus/make active a specific Tab on a Tab Control other than clicking on it. Before I provide the answer, I feel as though a little summary...
4
ADezii
by: ADezii | last post by:
One frequently asked question at TheScripts is how to set focus/make active a specific Tab on a Tab Control other than clicking on it. Before I provide the answer, I feel as though a little summary...
13
by: Kirk | last post by:
I have been reading Scott Allen's article on Master Pages (http:// odetocode.com/Articles/450.aspx) but I am having problems understanding a concept. Specifically, I have created a property...
1
by: beebee | last post by:
Hi all i am getting the following error message when my feedback form is posted: "This page is accessing information that is not under its control. This poses a security risk. Doyou want to...
2
by: brendan_gallagher_2001 | last post by:
HI I am developog an ASP.net site (using vb.net 1.1) which will be accessed by a number of different office locations, where certain users will be assigned a authoriser profile, and others will...
1
by: runway27 | last post by:
i need help with accessing the value of a variable from a different page. i have an index.php file which has 2 files included to display header and footer and the center portion changes based on...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.