Questions tagged [global.asa]

Global.asa is a file that can contain global variables and settings, accessible throughout all of the ASP scripts in an ASP application.

Global.asa is a file that can contain global variables and settings, accessible throughout all of the ASP scripts in an ASP application. The Global.asa is optional, and must be unique for the application. It can contain events, declarations, definitions and include directives. Usually, it is situated in the root of the ASP project directory.

42 questions
0
votes
0 answers

SQL Server 2008 R2 connectionstring

global.asa Application("Connection_ConnectionString") = "Provider=SQLOLEDB.1;Persist Security Info=False;Data Source=127.0.0.1;Initial Catalog=O2JAMTRADE;User ID=USERNAME;PWD=PWD" Application("m_Connection_ConnectionString") =…
0
votes
1 answer

Variables with if/then statement in global.asa

I'm trying to make the following a variable in my global.asa.

abc <% If Request.ServerVariables("url") <> "/mobile.asp" Then %><% End If %>def<% If Request.ServerVariables("url") <> "/mobile.asp" Then…

testing123
  • 761
  • 6
  • 13
  • 37
0
votes
0 answers

Is it possible to use a variable for the object ID in a global.asa Object

I'm messing around with global.asa and I'm wondering if it's possible to create unique Object ID's using variables. Below is my example. My ID is currently TDI.…
MadV
  • 57
  • 4
0
votes
0 answers

Make use of Global.asa in IIS 8.5 without converting folder into application

I was configuring an ASP classic app which was hosted in Windows 2003 server on IIS6.0 into Windows Server 2012 IIS8.5. The app has oracle DB which was configured using ODBC DSN with oracle 11g thin client driver. The issue is when configuring the…
Murthy
  • 11
  • 3
0
votes
1 answer

get AppFriendlyName of currently executing web page in global.asa?

I need to get access to the AppFriendlyName of a IIS application in the global.asa Application_Start event (classic ASP) I am looking for the equivalent of HttpContext.Current.Request.ApplicationPath in the global.asax (ASP.NET) Is there a way to do…
Jerome WAGNER
  • 21,986
  • 8
  • 62
  • 77
0
votes
0 answers

Register DLL in IIS 8.5 problems Global.asa

I have one server with IIS 5.0 running an ASP application. I changed the ASP application from Windows Server 2003 to Windows Server 2012, so I've installed IIS 8.5 and I've activated the ASP extension. It's ok, but I have a problem. I have one…
0
votes
1 answer

Calling functions in global.asa

I would like to call a function from another file in the Session_OnStart part if global.asa, so I could declare some Session("variables") according to some data. Is it possible? How? Edit: I found a workaround, where I have a global functions file…
Tomer Amir
  • 1,515
  • 4
  • 27
  • 54
0
votes
1 answer

SQL query in Global.asa file

So the previous developer added some application variables in Global.asa file but he hard coded those and we found a bug which need to be dynamic. Now is it possible(or correct way) to add a SQl query to fetch the data and setting the application…
arpan shah
  • 277
  • 2
  • 18
0
votes
1 answer

session_onstart does not fire classic asp

My Session_OnStart in my golbal.asa file won't fire on one machine but works as expected on the other. Both machines are Windows server 2003 with IIS6. Here is my code. global.asa