Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Problem with data binding and usercontrols

Reply
Thread Tools

Problem with data binding and usercontrols

 
 
jaffar.kazi@gmail.com
Guest
Posts: n/a
 
      12-26-2006
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_na me")%>
</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_na me")%>'
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best way to reload data into multiple usercontrols on postback? Gummy ASP .Net 0 09-19-2006 02:36 AM
Usercontrols passing data back to the Page object Tarun Mistry ASP .Net 4 02-09-2006 10:59 PM
Complex data binding question, binding child objects of a custom collection. JcFx ASP .Net Datagrid Control 0 06-01-2005 04:01 PM
Data Binding - using inline code vs. functions vs. straight binding Jordan ASP .Net 2 02-10-2004 08:32 PM
value binding and function binding Vivek Nallur Ruby 0 09-25-2003 02:52 AM



Advertisments