link text box to datasource

  • Thread starter Thread starter John M
  • Start date Start date
J

John M

Hello,

Is there any way to link a "textbox" element, that is on the aspx page, to a
field on database ?

Need sample code, please.

Thanks :)
 
Try this

<asp:TextBox id="myTextBox" runat="server"
Text='<%# DataViewname ( 0 ) ( "field_lname" ) %>'>
</asp:TextBox>

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
add a text box and modify its properties in the code window

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
Back
Top