acessing body tag

Discussion in 'ASP .Net Web Controls' started by Felipe Garcia, Aug 17, 2004.

  1. I've built a control, and now i need to access the body tag from the page
    that the control is attached to, to insert an OnLoad attribute.
    Is there a way to do this from inside the control ? Or what's better way to
    do this ?

    Thanks
    -- Felipe Garcia
    Felipe Garcia, Aug 17, 2004
    #1
    1. Advertising

  2. Felipe Garcia

    kw Guest

    Use RegisterPostBackScript() to insert a script. instead of using
    OnLoad('runjs();') in body, just do this:

    <script>runjs();</script>

    "Felipe Garcia" <#> wrote in message
    news:...
    > I've built a control, and now i need to access the body tag from the page
    > that the control is attached to, to insert an OnLoad attribute.
    > Is there a way to do this from inside the control ? Or what's better way

    to
    > do this ?
    >
    > Thanks
    > -- Felipe Garcia
    >
    >
    kw, Aug 19, 2004
    #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. Jay
    Replies:
    2
    Views:
    905
    Peter O'Reilly
    Nov 21, 2003
  2. sandy
    Replies:
    2
    Views:
    540
    sandy
    Apr 26, 2004
  3. Fabiano

    Acessing codebehind data from ASPX

    Fabiano, May 26, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    340
    Jeffrey Palermo [MCP]
    May 26, 2004
  4. Steve Peterson

    Acessing property

    Steve Peterson, Jun 17, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    383
    Kevin Spencer
    Jun 17, 2004
  5. shruds
    Replies:
    1
    Views:
    743
    John C. Bollinger
    Jan 27, 2006
Loading...

Share This Page