Problem with data binding and usercontrols

J

jaffar.kazi

Hi.
I have the following code:
<asp:Repeater ID="MyQuoteDetails" runat="server"
OnItemDataBound="MyQuoteDetails_ItemDataBound">
<ItemTemplate >
<table border="0" cellpadding="0" cellspacing="1" style="width:
98%">
<tr>
<td>
<%#
DataBinder.Eval(Container.DataItem,"order_number")%>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem,"order_date")%>
</td>
<td>
<%#
DataBinder.Eval(Container.DataItem,"ship_method_name")%>
</td>
</tr>
</table>

<uc1:QuoteHeaderDisplay
QuoteNumber='<%#
DataBinder.Eval(Container.DataItem,"order_number")%>'
EnableQuoteDetailsURL="true"
QuoteDate='<%#
DataBinder.Eval(Container.DataItem,"order_date")%>'
QuoteExpiryDate='<%#
DataBinder.Eval(Container.DataItem,"order_date")%>'
QuoteAmount='0'
ShipMethod='<%#
DataBinder.Eval(Container.DataItem,"ship_method_name")%>'
PlacedBy='Not Found'
runat="server" />

The problem is that the code without the usercontrol QuoteHeaderDisplay
works perfectly, but the user control code does not show any data. I've
debugged the code, and all values get properly assigned, even for the
usercontrol, but they don't show up.

Could anyone tell me what the problem could be? The usercontrol is a
display-only control, with no data handling, etc.

TIA.
--Jaffar
 

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,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top