Retreiving value from html textbox on .aspx.cs page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kmithu
    New Member
    • Jun 2007
    • 11

    Retreiving value from html textbox on .aspx.cs page

    Hey friends,

    I am making a calender control using javascript but I am not able to retrieve its value on my .aspx.cs coding page in asp.net2.0.
    My text box code is :

    <input type="text" class="fancy" size="10" maxlength="10" readonly="reado nly" name="date1" value="" id="txtDob"/>
    <input type="button" class="fancyBut ton" onclick="setDat e('date1')" value="DOB" />

    When i give the input type="text" a runat="server" tag, it gives an error that function is nt correctly defined.....How can i access the value of html textbox on .cs page?

    Thanku for everyone who will help me out
Working...