Sub Procedure in Global.asa

P

Prabhat

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
 
P

Phill. W

Prabhat said:
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.
 
P

Prabhat

Phill. W said:
Yes, but there's not a lot of point doing so, because ...


Local to Global.asa. Why Our Friends in Redmond ever called this
thing "Global", I'll never know ...


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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top