Problem with Dropdown.. please urgently reply.. RRS feed

  • Question

  • User-1531564702 posted


    protected void LoadRecords()
    List<PO.viewSO_Result> viewpolist = objDb.viewSO().ToList();

    CustomerRepeater.DataSource = viewpolist;



    <asp:Repeater ID="CustomerRepeater" runat="server" >
    <tr class="odd gradeX" >
    <td><%# Eval("Supplier_order_id_pk") %></td>
    <asp:DropDownList runat="server" ID="dropdown1">
    <asp:ListItem Text='<%# Eval("Supplier_order_id_pk") %>' Value='<%# Eval("Supplier_order_id_pk") %>'>



    my dropdown not working or fetch value please help me its urgent..

    it gives this error

    Databinding expressions are only supported on objects that have a DataBinding event. System.Web.UI.WebControls.ListItem does not have a DataBinding event

    Tuesday, November 7, 2017 7:17 AM

All replies

  • User1777983149 posted

    Bind ddl on databound method

    Tuesday, November 7, 2017 1:36 PM
  • User347430248 posted

    Hi bilal0040,

    I can see that you had created a duplicate thread on a Stack Overflow forum.

    C# - Dropdown in repeater not working

    where you had mentioned that the solution provided by the community member worked for you and your issue is solved now.

    I suggest you to post that code on this thread and mark it as an answer.

    it will help other community members in future and it will help us to close this thread.

    Thanks for your understanding.



    Wednesday, November 8, 2017 7:39 AM