Binding a textbox to a detailsview in asp.net 2.0

G

Guest

Hi, Is it possible to bind a text box to the results of a detailsview
record. This is for a university project using visual web developer 2005
express beta. Unfortunatly this is a new eniroment to me and i can't find any
relevant resources on it. The code i have been trying to use is:

</asp:DetailsView>
<asp:TextBox ID="TextBox1" Runat="server"
Text='<%# ObjectDataSource1("StockCode")%>' >

</asp:TextBox>

I guess it is the objectdatasource1 bit that is messing up. any ideas?
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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top