<asp:GridView ID="rptbindcart" runat="server" AutoGenerateColumns="False" BorderStyle="None" EnableModelValidation="True"> <Columns> <asp:TemplateField HeaderText="Name"> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("p_name") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# Bind("p_name") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Image"> <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("p_price") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Image ID="Image1" runat="server" Height="36px" ImageUrl='<%# Eval("p_img","~/Product/{0}") %>' Width="36px" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Price"> <EditItemTemplate> <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("p_price") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label3" runat="server" Text='<%# Bind("p_price") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Quantity"> <EditItemTemplate> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label4" runat="server"></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Total"> <EditItemTemplate> <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label5" runat="server"></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:CommandField EditText="Change" ShowEditButton="True" /> <asp:CommandField DeleteText="Remove" ShowDeleteButton="True" /> </Columns> </asp:GridView>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)