User Object and page onload event

Discussion in 'ASP .Net' started by UJ, May 26, 2005.

  1. UJ

    UJ Guest

    I have a page that I am going to convert to a user object that works just
    fine. Problem is it displays a prompt by checking a hidden text field on
    load to see if it should display it. Which means I have a piece of
    JavaScript in the head section plus an onload= in the body tag. How can I
    get this to work in my object? Do I need to put the same code on every page
    that will be calling this object in order for it to work?

    TIA.

    Jeffrey.
    UJ, May 26, 2005
    #1
    1. Advertising

  2. UJ

    Phillip Ian Guest

    You'll probably want to look up the RegisterClientScriptBlock() and
    RegisterStartupScript() methods of the page object. And don't be
    fooled by intellisense...while they don't show up there, they are valid
    methods...you'll find them in help.
    Phillip Ian, May 26, 2005
    #2
    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. Fabio R.
    Replies:
    0
    Views:
    793
    Fabio R.
    Mar 25, 2005
  2. Bender
    Replies:
    2
    Views:
    259
    Thomas 'PointedEars' Lahn
    Oct 22, 2003
  3. David Otton

    window.onload and body.onload differences

    David Otton, Nov 4, 2004, in forum: Javascript
    Replies:
    2
    Views:
    545
    Martin Honnen
    Nov 4, 2004
  4. Replies:
    5
    Views:
    257
    Thomas 'PointedEars' Lahn
    May 15, 2005
  5. marco

    onload -->* no onload

    marco, Jun 22, 2006, in forum: Javascript
    Replies:
    7
    Views:
    202
    marco
    Jun 24, 2006
Loading...

Share This Page