I am trying to place two listviews on one screen.

patrick

Well-known member
Joined
Dec 5, 2021
Messages
305
Programming Experience
1-3
I am trying to place two listviews on one screen.
How do I place two listviews on the right and left?

I didn't put any code between <asp:ListView ID="listAssign" ~~~~~~ </asp:ListView> and <asp:ListView ID="listNoAssign" ~~~~~~~`</asp:ListView>.


C#:
<asp:ListView ID="listAssign" runat="server" Visible="true">

                                                            <LayoutTemplate>
                                                                <table border="0px" cellpadding="1" width="100">
                                                                    <tr>
                                                                        <th>SELECT</th>
                                                                        <th>ORDER_ID</th>
                                                                        <th>PLAN_TIME</th>
                                                                        <th>PRODUCT_CODE</th>
                                                                        <th>ALC_CODE</th>
                                                                        <th>ORDER_STATUS_NM</th>
                                                                    </tr>
                                                                    <tr id="itemplaceholder" runat="server"></tr>
                                                                </table>
                                                            </LayoutTemplate>

                                                            <ItemTemplate>
                                                                <tr>
                                                                    <td>
                                                                        <asp:CheckBox ID="chkSELECT" runat="server" AutoPostBack="true"OnCheckedChanged="CheckBoxHeader_CheckedChanged" /></td>
                                                                    <td>
                                                                        <asp:Label ID="ORDER_ID" Text='<%#Eval("ORDER_ID") %>' runat="server" Visible="true"></asp:Label></td>
                                                                    <td>
                                                                        <asp:Label ID="PLAN_TIME" Text='<%#Eval("PLAN_TIME") %>' runat="server" Visible="true"></asp:Label></td>
                                                                </tr>
                                                            </ItemTemplate>
                                                        </asp:ListView>

                                                        <asp:ListView ID="listNoAssign" runat="server" Visible="true">
                                                            <LayoutTemplate>
                                                                <table border="0px" cellpadding="1" width="100">
                                                                    <tr>
                                                                        <th>SELECT</th>
                                                                        <th>ORDER_ID</th>
                                                                        <th>PLAN_TIME</th>
                                                                        <th>PRODUCT_CODE</th>
                                                                        <th>ALC_CODE</th>
                                                                        <th>ORDER_STATUS_NM</th>
                                                                    </tr>
                                                                    <tr id="itemplaceholder" runat="server"></tr>
                                                                </table>
                                                            </LayoutTemplate>
                                                            <ItemTemplate>
                                                                <tr>
                                                                    <td>
                                                                        <asp:CheckBox ID="chkSELECT" runat="server" AutoPostBack="true"OnCheckedChanged="CheckBoxHeader_CheckedChanged" /></td>
                                                                    <td>
                                                                        <asp:Label ID="ORDER_ID" Text='<%#Eval("ORDER_ID") %>' runat="server" Visible="true"></asp:Label></td>
                                                                    <td>
                                                                        <asp:Label ID="PLAN_TIME" Text='<%#Eval("PLAN_TIME") %>' runat="server" Visible="true"></asp:Label></td>
                                                                </tr>
                                                            </ItemTemplate>
                                                        </asp:ListView>

aa1.png
 
The old fashioned way would be to use tables. The was before people learned the ways of CSS to do appropriate layout.
 
The old fashioned way would be to use tables. The was before people learned the ways of CSS to do appropriate layout.

Your Answer) The old fashioned way would be to use tables.
====> I am using listview. I use two listviews, and I need to arrange them to the right and left on the screen.
What do you mean by table?
 
C#:
<table>
  <tr>
    <td>left</td>
    <td>right</td>
  </tr>
</table>

That was in the web 1.0 days. Please do not do this with a modern website.
 
The correct modern way to do it is with CSS.

 

Latest posts

Back
Top Bottom