Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
asp script in global.asa
Old 04-02-2005, 08:50 AM asp script in global.asa
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
Hi,
I ve go the below aspp code? in a gloabl.asa file.
It's not working though.
Has anyone got any ideas.

(if i run in own asp file. code works fine and record is deleted.)
I have global.asa in the route directory of homepage

Code:
<script language="vbscript">

sub Session_OnEnd
   removeLogin
end sub

sub removeLogin
  Set Conn = Server.CreateObject("ADODB.Connection") 
  Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("db/database.mdb")
   Set RS = Server.CreateObject("ADODB.RecordSet")
  SQL = "delete from PNETLOGGED where PNETUSERNAME = '"&"Webman"&"'"
  Set RS = conn.Execute(SQL)
  Conn.close
  set RS = nothing
  set Conn = nothing
end sub


</script>
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 04-04-2005, 06:57 AM
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
perhaps i should add.
I know the actual script works,
However want to know that the syntax for defining asp script in global.asa file is correct.

cheers for your time.
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to asp script in global.asa
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09549 seconds with 12 queries