<span class="auto-style2">I wanna see: </span> <asp:DropDownList ID="DropDownList1" runat="server" Height="44px" Width="214px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" CssClass="auto-style3" DataTextField="Brand" DataValueField="Brand"> <asp:ListItem Selected="True">clothes <asp:ListItem>jewelry <asp:ListItem>shoes <asp:DataList ID="DataList1" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" Width="99%" BorderColor="Blue" BorderStyle="Solid" BorderWidth="3px" DataSourceID="SqlDataSource1" Height="456px"> <itemtemplate> Brand: <asp:Label ID="BrandLabel" runat="server" Text='<%# Eval("Brand") %>'> <br /><br /> Image:<br /> <br /> <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Image") %>' /><br /><br /> Price: <asp:Label ID="PriceLabel" runat="server" Text='<%# Eval("Price") %>' /> <br /><br /> Description: <asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' /> <br /><br /> </itemtemplate> <itemstyle horizontalalign="Center" verticalalign="Top" /> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:loginString %>" SelectCommand="SELECT [Brand], [Price], [Image], [Description] FROM [w_product] WHERE ([Category] = @Category)"> <SelectParameters> <asp:ControlParameter ControlID="DropDownList1" DefaultValue="clothes" Name="Category" PropertyName="SelectedValue" Type="String" /> </SelectParameters>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)