Tauseef Khan

Tauseef Khan

  • NA
  • 13
  • 15.3k

listview issue

Nov 18 2009 2:10 PM
hi guys , i am having problem at design time and getting error ,
listview does not have any public propery named tr...

why ?

any help , please .

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    
    <ContentTemplate>
    
    <asp:ListView ID  = "lstview" runat ="server" DataSourceID="orderdatasource">
    
    
    <LayoutTemplate>
    
    <table id ="itemplaceholdercontainer">
    <tr>
    <th>
    Order ID
    </th>
    <th>
    Customer ID
    </th>
    <th>
    Order Date
    </th>
    <th>
    Ship Address
    </th>
     <th>
    Ship Country
    </th>
    </tr>
    <tr runat ="server" id ="itemPlaceholder"></tr>
    </table>
    
    </LayoutTemplate>
    <tr>
    <td>
    <asp:Label ID  = "lblorderid" runat ="server" text = '<%#eval(orderid)%>'></asp:Label>
    
    </td>
    <td>
    <asp:Label ID  = "lblcustomerid" runat ="server" text = '<%#eval(customerid)%>'></asp:Label>
    </td>
    <td>
    <asp:Label ID  = "orderdate" runat ="server" text = '<%#eval(orderdate)%>'></asp:Label>
    
    </td>
    <td>
    <asp:Label ID  = "shipaddress" runat ="server" text = '<%#eval(shipaddress)%>'></asp:Label>
    
    </td>
    <td>
    <asp:Label ID  = "shipcountry" runat ="server" text = '<%#eval(shipcountry)%>'></asp:Label>
    
    </td>
    </tr>
    
    
    
    </asp:ListView>
    
        <asp:ObjectDataSource ID="orderdatasource" runat="server"
            SelectMethod="GetOrdersByCustomer" TypeName="BAL.CustomerBAL">
            <SelectParameters>
                <asp:ControlParameter ControlID="dpcustomers" Name="customer"
                    PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
    </ContentTemplate>
    
    </asp:UpdatePanel>

Answers (1)