Dec 21, 2008 #1 auchtum Programmer Nov 21, 2008 20 US Hello, how can I assign a value to HTML input textbox with VB? This is my html code: <input id="fechaentrega" name="fechaentrega" style="width: 124px" type="text" value='<%=request("fechaentrega") %>' /> Thx for the help.
Hello, how can I assign a value to HTML input textbox with VB? This is my html code: <input id="fechaentrega" name="fechaentrega" style="width: 124px" type="text" value='<%=request("fechaentrega") %>' /> Thx for the help.
Dec 22, 2008 #2 adamroof Programmer Nov 5, 2003 1,107 US From the VB code behind you can add the runat server to the input and assign the value. Why do you need to use an input instead of an <asp:TextBox />? <input id="fechaentrega" runat="server"name="fechaentrega" style="width: 124px" type="text" /> Sub Page_Load() If Not Page.IsPostBack Then fechaentrega.value = "puede aqui" End If End Sub Upvote 0 Downvote
From the VB code behind you can add the runat server to the input and assign the value. Why do you need to use an input instead of an <asp:TextBox />? <input id="fechaentrega" runat="server"name="fechaentrega" style="width: 124px" type="text" /> Sub Page_Load() If Not Page.IsPostBack Then fechaentrega.value = "puede aqui" End If End Sub
Dec 29, 2008 #3 allinoneprogrammer Programmer Dec 29, 2008 7 Is it a database bound checkbox? Upvote 0 Downvote