How to Remove ListView From a Page
When you insert a "ListView" control to render an HTML table on your Web page, you are essentially taking the content included in the table and reformatting it so that it appears in lists on the page when a user opens it. The ListView is created with ASP Java code. If you no longer have need of the ListView in your page, you may want to consider removing it. To do this, you must remove the ASP code.
Instructions
-
-
1
Log into your Web server. Click the HTML page that includes the ListView ASP code to open it.
-
2
Scroll down to the <body> section of the page to locate the first <asp:ListView> tag.
-
-
3
Highlight all the code from the opening <asp:ListView> tag to the closing </asp:ListView> tag. The code would appear something like this:
<asp:ListView
ID="lstProducts"
DataSourceId="srcProducts"
runat="server">
<LayoutTemplate>
<table>
<thead>
<tr>
<td>Title</td>
<td>Director</td>
</tr>
</thead>
<tbody>
<asp:Placeholder
id="itemPlaceholder"
runat="server" />
</tbody>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<td><%# Eval("Title") %></td>
<td><%# Eval("Director") %></td>
</tr>
</ItemTemplate>
<EmptyDataTemplate>
No records found
</EmptyDataTemplate>
</asp:ListView>
-
4
Select "Ctrl" and "X" to cut this code from the page.
-
5
Publish the page.
-
1