Results 1 to 2 of 2

Thread: call a function for each page load

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    95

    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

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: call a function for each page load

    Put that into your global.asax file
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width