<asp:LinkButton ID="linkAddtocart" runat="server" oncommand="BuyNow_Command" CommandArgument='<%#Eval("Product_ID") %>'>Add To Cart</asp:LinkButton>
protected void BuyNow_Command(object sender, CommandEventArgs e) { string str = ""; if (Session["ProductID"] == null) { str = e.CommandArgument.ToString(); Session["ProductID"] = str + "|"; } else { str = Session["ProductID"].ToString(); str = str + e.CommandArgument.ToString() + "|"; Session["ProductID"] = str; } Label1.Text = str; }
<asp:Label ID="lblSize" runat="server" Text="Select Size :"></asp:Label> <asp:RadioButton ID="RadioButton1" GroupName="Size" runat="server" Text="Small" oncheckedchanged="RadioButton1_CheckedChanged" /> <asp:RadioButton ID="RadioButton2" GroupName="Size" runat="server" Text="Medium" oncheckedchanged="RadioButton2_CheckedChanged" /> <asp:RadioButton ID="RadioButton3" GroupName="Size" runat="server" Text="Large" oncheckedchanged="RadioButton3_CheckedChanged" /> <asp:RadioButton ID="RadioButton4" GroupName="Size" runat="server" Text="XL" oncheckedchanged="RadioButton4_CheckedChanged" /> <asp:RadioButton ID="RadioButton5" GroupName="Size" runat="server" Text="XXL" oncheckedchanged="RadioButton5_CheckedChanged" /> <asp:RadioButton ID="RadioButton6" GroupName="Size" runat="server" Text="XS" oncheckedchanged="RadioButton6_CheckedChanged" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)