<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. Advertising

  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. 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. Roberto
    Replies:
    3
    Views:
    312
  2. Ron Brennan
    Replies:
    5
    Views:
    316
    Dr John Stockton
    May 14, 2004
  3. Randell D.
    Replies:
    12
    Views:
    257
    Randell D.
    Jul 6, 2005
  4. Tarkeshwar
    Replies:
    2
    Views:
    194
  5. Vincent van Beveren

    Switich Input field from TYPE=TEXT to TYPE=PASSWORD

    Vincent van Beveren, Jul 13, 2006, in forum: Javascript
    Replies:
    5
    Views:
    180
    Randy Webb
    Jul 13, 2006
Loading...

Share This Page