<Input type variable in asp.net

Discussion in 'ASP .Net' started by venky, Mar 21, 2005.

  1. venky

    venky Guest

    Hi

    I have a html control <Input type="text" name="txtCallbackDate">

    This control doesn't run on server. I want to set the value of this
    control from my code. how do i do that?


    venky
     
    venky, Mar 21, 2005
    #1
    1. Advertisements

  2. venky

    Brock Allen Guest

    Add runat="server", remove the name and add id="txtCallbackDate"

    <Input type="text" runat="server" id="txtCallbackDate">

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > Hi
    >
    > I have a html control <Input type="text" name="txtCallbackDate">
    >
    > This control doesn't run on server. I want to set the value of this
    > control from my code. how do i do that?
    >
    > venky
    >
     
    Brock Allen, Mar 21, 2005
    #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. Matthew Louden
    Replies:
    4
    Views:
    3,356
    Fahad Al Hadhrami
    Nov 24, 2003
  2. IkBenHet
    Replies:
    2
    Views:
    5,448
    Patrice
    Jun 28, 2005
  3. =?Utf-8?B?RGF2aWQgQ2FtZXJvbg==?=

    input type="radio" ASP.net bug

    =?Utf-8?B?RGF2aWQgQ2FtZXJvbg==?=, Sep 21, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    4,206
    Kevin Spencer
    Sep 23, 2005
  4. Replies:
    2
    Views:
    6,902
    Laurent Bugnion
    May 18, 2006
  5. Matthew Louden

    how ASP.NET page gets user input from another ASP.NET page??

    Matthew Louden, Nov 22, 2003, in forum: ASP .Net Web Controls
    Replies:
    5
    Views:
    355
    Fahad Al Hadhrami
    Nov 24, 2003
  6. Roberto
    Replies:
    3
    Views:
    490
  7. Ron Brennan
    Replies:
    5
    Views:
    640
    Dr John Stockton
    May 14, 2004
  8. Tarkeshwar
    Replies:
    2
    Views:
    331
Loading...