Label databinding

D

David

Hello
I am fairly new to ASP.Net 2.0 and have been having trouble.

I have a form view which displays data from related tables. In the edit and
new template I have some DropDownLists which allow a list of values from
other tables to be selected for update or insertion.

What I want to do is to have the current values displayed in the item
template on a label. I have tried this without success and also tried to put
a formview within the formview without luck.

Can anyone advise how /if this could be done .

Thanks
 
G

Guest

sorry i meant:

<asp:label id="MyLabel" runat="server" text='<%# Bind("FieldName") %>'/>
 
D

David

Thanks but the problem is that what I want to display is the value from a
related table and this code displays the data from the orginal table. This
displays an id value rather than the value from related table.
 

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
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top