asp:DataList ID="DataList1" runat="server" RepeatColumns="3" OnItemCommand="DataList1_ItemCommand" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Both" Width="719px" > <ItemTemplate> <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl='<%#Eval("image")%>' CommandName="selectimage" Width=100 Height=100 /><br />
protected void DataList1_ItemCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e) { if (e.CommandName == "selectimage") { int Id = int.Parse(e.CommandArgument.ToString()); Response.Redirect("~/clothes3.aspx?Id=" + e.CommandArgument.ToString()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)