JavaScript Access to Button in form tags (webcontrol or html button)

Discussion in 'ASP .Net' started by Wes Weems, Jul 19, 2003.

  1. Wes Weems

    Wes Weems Guest

    Hello,

    I have a button called LoadBtn, which exists in <form name="Form1"
    runat=server></form> tags.

    I then have javascript loaded outside of that form, and apparently I cant
    call any methods of that object (particularly the disabled property)... as
    it says:

    'document.Form1.LoadBtn' is null or is not an object!

    to anyone who can offer any advice whatsoever (regarding accessing objects
    that exist in the form tags, would be greatly appreciated!)

    Wes
     
    Wes Weems, Jul 19, 2003
    #1
    1. Advertisements

  2. Wes Weems

    Natty Gur Guest

    What about the ID attribute ?

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Natty Gur, Jul 20, 2003
    #2
    1. Advertisements

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. Dean H. Saxe
    Replies:
    0
    Views:
    1,226
    Dean H. Saxe
    Jan 3, 2004
  2. Guest
    Replies:
    2
    Views:
    890
  3. Rob Nicholson
    Replies:
    3
    Views:
    1,010
    Rob Nicholson
    May 28, 2005
  4. Donald Firesmith

    html tags within meta tags allowed?

    Donald Firesmith, Jan 5, 2005, in forum: XML
    Replies:
    5
    Views:
    1,204
    Andy Dingley
    Jan 8, 2005
  5. Replies:
    0
    Views:
    592
  6. Luis Ramírez.

    Can a webcontrol (webcontrol.dll) have a configuration file?

    Luis Ramírez., Jul 5, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    395
    Luis Ramírez
    Jul 6, 2004
  7. Kasabaarde Sumta

    WebControl inside of WebControl and attaching events

    Kasabaarde Sumta, Dec 13, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    314
    Kasabaarde Sumta
    Dec 13, 2004
  8. Fabricio

    Custom webcontrol that references another webcontrol

    Fabricio, Sep 21, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    319
    Fabricio
    Sep 21, 2005
Loading...