Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assigning a value to HTML input textbox with VB

Status
Not open for further replies.

auchtum

Programmer
Nov 21, 2008
20
0
0
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.
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top