Adding attribute to vody element

Discussion in 'ASP .Net' started by David, Jan 4, 2005.

  1. David

    David Guest

    Hello.

    How can I add some attribute to "body" of the form from the code?
    P.S. I want to add "onLoad" event from code to execute some JavaScript
    function.

    Thank you.
    David, Jan 4, 2005
    #1
    1. Advertising

  2. What about hardcoding it on the aspx page? What do you need to change in
    runtime?


    Eliyahu

    "David" <> wrote in message
    news:u6T%...
    > Hello.
    >
    > How can I add some attribute to "body" of the form from the code?
    > P.S. I want to add "onLoad" event from code to execute some JavaScript
    > function.
    >
    > Thank you.
    >
    >
    Eliyahu Goldin, Jan 4, 2005
    #2
    1. Advertising

  3. David

    Hans Kesting Guest

    David wrote:
    > Hello.
    >
    > How can I add some attribute to "body" of the form from the code?
    > P.S. I want to add "onLoad" event from code to execute some JavaScript
    > function.
    >
    > Thank you.


    If you want to execute some javascript on load of the page, you can
    also use Page.RegisterStartupScript.


    Hans Kesting
    Hans Kesting, Jan 4, 2005
    #3
    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. anonymous
    Replies:
    1
    Views:
    5,927
  2. =?Utf-8?B?TWFyaw==?=
    Replies:
    4
    Views:
    620
    =?Utf-8?B?TWFyaw==?=
    Dec 14, 2006
  3. perspolis
    Replies:
    1
    Views:
    2,537
    Mark Rae
    Jan 23, 2007
  4. Joe Kovac
    Replies:
    2
    Views:
    925
    Joe Kovac
    May 2, 2007
  5. CdnRebel
    Replies:
    4
    Views:
    1,964
    CdnRebel via DotNetMonster.com
    Jul 4, 2007
Loading...

Share This Page