How to put value in asp.net textbox from javascript?

Discussion in 'ASP .Net' started by Eph0nk, Aug 6, 2003.

  1. Eph0nk

    Eph0nk Guest

    Hi,

    I don't know a lot about javascript - and i'm stuck on a certain problem. I
    need to put a value in an <asp:textbox> control from a javascript.
    The textbox is called "txtThumb" - and the name stays the same once rendered
    to html.
    I've tried txtthumb.text & txtthumb.value, but both do nothing.

    I'm sure it must be quite simple :/
    ---
    Tim De Vogel
    S-Data NV
     
    Eph0nk, Aug 6, 2003
    #1
    1. Advertising

  2. Eph0nk

    Jason Guest

    javascript be case sensitive, but you probably know that :)

    formname.TetBox ID.value = any value

    "Rohit" <> wrote in message
    news:...
    > Hi,
    > You can either do it using
    > formname.TetBox ID.Value = any value
    > OR
    > document.getElementById(TextBox ID).value = any value
    >
    > regards,
    > Rohit,
    >
    >
     
    Jason, Aug 6, 2003
    #2
    1. Advertising

  3. Eph0nk

    Eph0nk Guest

    Yeah, i knew that.
    Thanks for the help..Works perfectly.

    --
    ---
    Tim De Vogel
    S-Data NV

    "Jason" <> schreef in bericht
    news:...
    > javascript be case sensitive, but you probably know that :)
    >
    > formname.TetBox ID.value = any value
    >
    > "Rohit" <> wrote in message
    > news:...
    > > Hi,
    > > You can either do it using
    > > formname.TetBox ID.Value = any value
    > > OR
    > > document.getElementById(TextBox ID).value = any value
    > >
    > > regards,
    > > Rohit,
    > >
    > >

    >
    >
     
    Eph0nk, Aug 6, 2003
    #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. Gabriel Rossetti
    Replies:
    3
    Views:
    554
    Jerry Hill
    Apr 25, 2008
  2. AGSHAR
    Replies:
    1
    Views:
    592
    AGSHAR
    May 31, 2008
  3. ErwinP
    Replies:
    1
    Views:
    747
    ErwinP
    Aug 19, 2005
  4. Tena
    Replies:
    1
    Views:
    136
    Peter Wyzl
    Oct 7, 2007
  5. Steve
    Replies:
    4
    Views:
    214
    Steve
    Feb 7, 2006
Loading...

Share This Page