473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Sub Procedure in Global.asa

Hi All,

Can I create a sub procedure in global.asa file?

If YES then Will that be Local to global.asa or Global for website?

And can I CALL that Sub from the Session_Onstart ?

Thanks
Prabhat
Oct 6 '05 #1
2 1329
"Prabhat" <no********@hotmail.com> wrote in message
news:ez**************@TK2MSFTNGP14.phx.gbl...
Can I create a sub procedure in global.asa file?
Yes, but there's not a lot of point doing so, because ...
... Will that be Local to global.asa or Global for website?
Local to Global.asa. Why Our Friends in Redmond ever called this
thing "Global", I'll never know ...
And can I CALL that Sub from the Session_Onstart ?


Yes.

HTH,
Phill W.
Oct 6 '05 #2
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:di**********@yarrow.open.ac.uk...
"Prabhat" <no********@hotmail.com> wrote in message
news:ez**************@TK2MSFTNGP14.phx.gbl...
Can I create a sub procedure in global.asa file?


Yes, but there's not a lot of point doing so, because ...
... Will that be Local to global.asa or Global for website?


Local to Global.asa. Why Our Friends in Redmond ever called this
thing "Global", I'll never know ...
And can I CALL that Sub from the Session_Onstart ?


Yes.

HTH,
Phill W.

Hi Phill,

Thanks for your reply. But can you please tell me why there must be LOT of
point doing so (creating a SUB). I was thinking instead of write a SUB will
be cleaner way to do things - Because My global.asa will look clean.

FYI:
My Requirement is I have to update one text file when Session Starts. Whci
will need to check if the folder exists or noit, file exists or not,
datewise format the records etc etc. So I have opt for a different Sub
instead of directly writing those in Session_Onstart and calling the sub
from Session_OnStart.

Thanks
Prabhat
Oct 6 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Thomasb | last post by:
With a background in MS SQL Server programming I'm used to temporary tables. Have just started to work with DB2 ver 7 on z/OS and stumbled into the concept of GLOBAL TEMPORARY TABLE. I have...
5
by: Gustavo Randich | last post by:
Hello, I'm writing an automatic SQL parser and translator from Informix to DB2. Now I'm faced with one of the most difficult things to translate, the "foreach execute procedure" functionality...
1
by: peaceburn | last post by:
Hi, I'm gonna pull my hair in the coming days with these DB2 stored procedures. So the issue, let's assume a simple stored procedure like this : CREATE PROCEDURE MYSCHEMA.PROCEDURE1 ( )...
0
by: amit | last post by:
The Table tt_local will be created when you execute the procedure. The table does not exist when you compile it. There are two options 1. Create the global temporary table manually Remove the...
0
by: a573851 | last post by:
I have a very lengthy stored procedure that I just inherited. Apparently this stored proc performs poorly. I am reviewing it to see where I can add some efficiencies. I would like to know if there...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.