Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in global.asa

Status
Not open for further replies.

murugesanks

Programmer
Joined
Jan 25, 2001
Messages
48
Location
US
My global.asa file contains the following code
====
<SCRIPT LANGUAGE=&quot;VBScript&quot; RUNAT=&quot;Server&quot;>
Sub Session_OnStart
session(&quot;Datasource&quot;) =&quot;PORTAL-DSN&quot;
End Sub
</SCRIPT>


and
My Test.asp file contains
===
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
</HEAD>
<BODY>

<% Response.write (session(&quot;datasource&quot;)) %>

</BODY>
</HTML>


===========
i created a folder(Named Test) in Root( and i stored these two files in Test Directory.
I am not able to see the value of session(&quot;Datasource&quot;).
what is the problem. can any one help me.
 
Why do you have it in a Sub_OnStart?
The declaration I mean.
 

Just i want to check glosbal.asa is working fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top