Problem with data binding and usercontrols

Discussion in 'ASP .Net Web Controls' started by jaffar.kazi@gmail.com, Dec 26, 2006.

  1. Guest

    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
     
    , Dec 26, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jordan
    Replies:
    2
    Views:
    2,535
    Jordan
    Feb 10, 2004
  2. Tarun Mistry
    Replies:
    4
    Views:
    669
    Tarun Mistry
    Feb 9, 2006
  3. Gummy
    Replies:
    0
    Views:
    322
    Gummy
    Sep 19, 2006
  4. JcFx
    Replies:
    0
    Views:
    279
  5. Vivek Nallur

    value binding and function binding

    Vivek Nallur, Sep 25, 2003, in forum: Ruby
    Replies:
    0
    Views:
    137
    Vivek Nallur
    Sep 25, 2003
Loading...

Share This Page