listview issue [modified]
-
<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> &n
-
<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> &n
Very hard to understand the code if it is not formatted perfectly. Check "Do not interpret HTML tags" Also let me know what exactly the problem you are getting.. ;)
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript -
<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> &n
I can see your signature in between code. This is funny. :laugh:
-
I can see your signature in between code. This is funny. :laugh:
Maybe the old Copy/Paste doesn't work here! :laugh:
mmm i can't understand that... or your problem... specify!!!
-
Very hard to understand the code if it is not formatted perfectly. Check "Do not interpret HTML tags" Also let me know what exactly the problem you are getting.. ;)
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript -
I can see your signature in between code. This is funny. :laugh:
-
As I can see the updated code, you cant place html inside a listview. You need to place <ItemTemplate> to define your html. Just use it below your layout template. Read this for further help : Complete ListView in ASP.NET 3.5[^] :rose:
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript