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
 
And how can I do that on design time on :
Microsoft Visual Studio .NET 2003 ?

Thanks :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top