REmove Manufacturers as a search option
Posted: Tue Oct 07, 2008 8:45 am
I have a client who wants to remove the search by Manufacturer option. Any ideas?
http://forums.ablecommerce.com/
Code: Select all
<%--<asp:DropDownList ID="ManufacturerList" runat="server" AppendDataBoundItems="True"
DataSourceID="ManufacturerDs" DataTextField="Name" DataValueField="ManufacturerId">
<asp:ListItem Text="- Any Manufacturer -" Value="0"></asp:ListItem>
</asp:DropDownList>--%>
and
<%--<asp:ObjectDataSource ID="ManufacturerDs" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="LoadForStore" TypeName="CommerceBuilder.Products.ManufacturerDataSource">
<SelectParameters>
<asp:Parameter Name="sortExpression" DefaultValue="Name" />
</SelectParameters>
</asp:ObjectDataSource>--%>
Code: Select all
<asp:ControlParameter Name="manufacturerId" Type="Int32" ControlID="ManufacturerList" PropertyName="SelectedValue" />
Code: Select all
<asp:Parameter Name="manufacturerId" Type="Int32" DefaultValue="0" />
Code: Select all
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
Code: Select all
<asp:TemplateField HeaderText="Manufacturer" SortExpression="Manufacturer">
<ItemTemplate>
<asp:Label ID="Manufacturer" runat="server" Text='<%#GetManufacturerLink((int)Eval("ManufacturerId"))%>'
></asp:Label>
</ItemTemplate>
</asp:TemplateField>
Code: Select all
<%--<asp:TemplateField HeaderText="Manufacturer" SortExpression="Manufacturer">
<ItemTemplate>
<asp:Label ID="Manufacturer" runat="server" Text='<%#GetManufacturerLink((int)Eval("ManufacturerId"))%>'
></asp:Label>
</ItemTemplate>
</asp:TemplateField>--%>