Executing client script before page load

Discussion in 'ASP .Net Building Controls' started by Eric Livingston, Jan 23, 2008.

  1. I'm working on a custom server control that inherits from textbox. I want to
    use the control to display a datetime object using the appropriate timezone
    offset for the client.

    Using ClientScriptManager.RegisterHiddenField, I've got a place to store the
    value returned by the js getTimezoneOffset. However, I need to execute the
    client script as early as possible in the page lifecycle to retrieve that
    value so that it is available in the code behind by the time the page load
    event fires.

    Any suggestions?

    Thanks!
     
    Eric Livingston, Jan 23, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Strøiman
    Replies:
    2
    Views:
    691
    Peter Strøiman
    Oct 28, 2003
  2. Patrick Olurotimi Ige

    Executing a validating query before loading a page

    Patrick Olurotimi Ige, Jan 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    499
    IPGrunt
    Jan 27, 2005
  3. et
    Replies:
    0
    Views:
    202
  4. Mark Anderson

    Executing code before page load complete...

    Mark Anderson, Oct 23, 2003, in forum: Javascript
    Replies:
    2
    Views:
    309
    Mark Anderson
    Oct 23, 2003
  5. max
    Replies:
    0
    Views:
    131
Loading...

Share This Page