HomeHome Product Discus... Product Discus...SmithCartSmithCartHow to hide the search control on product listing pageHow to hide the search control on product listing page
Previous
 
Next
New Post
3/3/2010 10:48 PM
 

Here is an easy way to hide the search box at the top of the product listing page. The search controls are all contained in an html table at the very top of the productlist.ascx file. Navigate to the /desktopmodules/smith.buynow folder and open up productlist.ascx page in your favorite editor and set the visible property of the table to false or you can cut and paste the code below:

<table runat="server" id="tbMain" visible="false">
<tr>
<td>Search:&nbsp;&nbsp;<asp:DropDownList ID="ddlSearch" runat="server" Width="120px"></asp:DropDownList></td>
<td width="5px"></td>
<td>
&nbsp;<asp:TextBox ID="txtSearch" runat="server" Width="208px"></asp:TextBox>&nbsp;&nbsp;
<asp:Button ID="btnSearch" runat="server" Text="Go" OnClick="btnSearch_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Records:&nbsp;&nbsp;
<asp:DropDownList ID="ddlRecords" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlRecords_SelectedIndexChanged">
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>50</asp:ListItem>
<asp:ListItem>100</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr style="height:20"><td></td></tr>
</table>

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartHow to hide the search control on product listing pageHow to hide the search control on product listing page