call a function for each page load
hi,
im using the following code in each page to set that page as active:
'---Set this page as active ---
Dim lstSlsh As Integer = Request.ServerVariables("SCRIPT_NAME").LastIndexOf("/")
Session("ActivLk") = Mid(Request.ServerVariables("SCRIPT_NAME"), lstSlsh + 2)
'---------------------------
but i need to call this as a function and make it global so that each page in my application loads that should call the function to set activ page.
How to call a function in each page load?
v.r.mahendran
Re: call a function for each page load
Put that into your global.asax file :)