Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: accessing value of a global variable without destroying it on refresh


Message #1 by "Santosh Singh" <singh_santosh_care@y...> on Tue, 27 Jun 2000 12:5:19
I want to use a global variable whose value need not be destroyed when we 

refresh a ASP page. Please suggest me a way out.

Message #2 by "Ken Schaefer" <ken.s@a...> on Wed, 28 Jun 2000 10:48:01 +1000
<%

If Len(application("strTemp")) then

    ' application variable already exists

    ' do something if required

Else

    ' set the variable to some value

End if

%>



You can do the same with session variables if required.



Cheers

Ken





----- Original Message -----

From: "Santosh Singh" 

To: "ASP Databases" <asp_databases@p...>

Sent: Tuesday, June 27, 2000 12:00 PM

Subject: [asp_databases] accessing value of a global variable without

destroying it on refresh





> I want to use a global variable whose value need not be destroyed when we

> refresh a ASP page. Please suggest me a way out.

>







Message #3 by smartin@c... on Wed, 28 Jun 2000 13:29:21 -0400
Ken



Len() does not return a Boolean (it returns a numeric), so you really should

have a comparison value...



If Len(application("strTemp")) > 0 Then



-Stephen



> -----Original Message-----

> From: Ken Schaefer 

> Sent: Tuesday, June 27, 2000 8:48 PM

> To: ASP Databases

> Subject: [asp_databases] Re: accessing value of a global variable

> without destroying it on refresh

> 

> 

> <%

> If Len(application("strTemp")) then

>     ' application variable already exists

>     ' do something if required

> Else

>     ' set the variable to some value

> End if

> %>

> 

> You can do the same with session variables if required.

> 

> Cheers

> Ken

> 

> 

> ----- Original Message -----

> From: "Santosh Singh" 

> To: "ASP Databases" <asp_databases@p...>

> Sent: Tuesday, June 27, 2000 12:00 PM

> Subject: [asp_databases] accessing value of a global variable without

> destroying it on refresh

> 

> 

> > I want to use a global variable whose value need not be 

> destroyed when we

> > refresh a ASP page. Please suggest me a way out.

> >

> 

> 

> 


  Return to Index