Results 1 to 3 of 3

Thread: ASP-Function

  1. #1
    Join Date
    Dec 1969

    Default ASP-Function

    Hi,<BR><BR>I need to call a funtion on Body onload. That function should set my session variable to some value.<BR><BR>Like..<BR>------<BR><BR><BR>function onload<BR><BR>session("tmpVar")=False<BR>..<BR><BR ><BR>How to do it.<BR><BR>-Murugesan<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Learn the fundamentals of ASP...

    The onLoad function happens *IN THE BROWSER*.<BR><BR>After ASP is 100% done sending the HTML page *to* the browser.<BR><BR>You can *NOT* affect anything on the server by invoking code in the browser.<BR><BR>It would be kind of like you, at home, being able to tell the television station to change a word on the screen. Nope. Once the TV station has sent the picture to your TV, you are stuck with it.<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: ASP-Function

    You need to call the function when the page is requested from the server. Session variables are server-side variables, and the body&#039;s onload event is a client-side event. You cannot set session variables with client-side code.

Posting Permissions

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