Connecting Tech Pros Worldwide Help | Site Map

accessing a value in all the pages

timonjue@googlemail.com
Guest
 
Posts: n/a
#1: Jun 6 '06
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

Richard Brown
Guest
 
Posts: n/a
#2: Jun 6 '06

re: accessing a value in all the pages



timonjue@googlemail.com wrote:[color=blue]
> 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[/color]

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

Bob Barrows [MVP]
Guest
 
Posts: n/a
#3: Jun 6 '06

re: accessing a value in all the pages


Richard Brown wrote:[color=blue]
> timonjue@googlemail.com wrote:[color=green]
>> 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[/color]
>
> 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.
>[/color]
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.


Closed Thread