Read variable

Results 1 to 2 of 2

Thread: Read variable

  1. #1
    Join Date
    Dec 1969

    Default Read variable

    I have a variable in a text file,which I am going to include in my Login.asp. I dont know how to read the variable and compare with another variable.

  2. #2
    Join Date
    Dec 1969

    Default RE: Read variable

    not sure if this is what you are getting at or why you might want to do this - if you are after a "global" variable that applies to all users and sessions then set an Application variable in your global.asa in the Session_OnStart subroutine. You can refer to it like this....<BR>Application("myVar")<BR><BR>but taking what you said literally......<BR><BR>make you include file something like this<BR><BR>&#060;% Dim myVar<BR> myVar = 1 %&#062;<BR><BR><BR>Then in your ASP page you do something like<BR><BR>&#060;!-- include file="" --&#062;<BR>&#060;%<BR>If myVar = 1 Then<BR> response.write("myVar is set to 1")<BR>else<BR> response.write("myVar is not set to 1")<BR>end if<BR>%&#062;<BR><BR><BR>hope that helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts