<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="ProductID" AllowPaging="False" Width="500" EnableViewState="False"> <AlternatingRowStyle BackColor="White" /> <headerstyle backcolor="Navy" forecolor="White"/> <Fields> <asp:TemplateField HeaderText ="Category-id"> <InsertItemTemplate > </InsertItemTemplate> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:TextBox ID="TxtCategoryid" runat="server"></asp:TextBox> <asp:Label ID="LabelCategoryid" runat="server" ></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText ="Category-description"> <InsertItemTemplate > </InsertItemTemplate> <EditItemTemplate> <asp:Label ID="LabelCategoryid" runat="server" ></asp:Label> </EditItemTemplate> <ItemTemplate> <asp:TextBox ID="TxtCategorydescription" runat="server"></asp:TextBox> <asp:Label ID="LabelCategorydescription" runat="server" ></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText ="Additional field 1"> <InsertItemTemplate > </InsertItemTemplate> <ItemTemplate> <asp:TextBox ID="TxtAdditionalfield1" runat="server" ></asp:TextBox> <asp:Label ID="LblAdditionalfield1" runat="server" ></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText ="Additional field 2"> <ItemTemplate > <asp:TextBox ID="TxtAdditionalfield2" runat="server"></asp:TextBox> <asp:Label ID="LblAdditionalfield2" runat="server" ></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText ="Additional field 3"> <ItemTemplate > <asp:TextBox ID="TxtAdditionalfield3" runat="server"></asp:TextBox> <asp:Label ID="LblAdditionalfield3" runat="server" ></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText ="Additional field 4"> <ItemTemplate > <asp:TextBox ID="TxtAdditionalfield4" runat="server"></asp:TextBox> <asp:Label ID="LblAdditionalfield4" runat="server" ></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField > <ItemTemplate> <asp:Button ID="BtnSave" Text ="Save" runat="server" Width="80"/> </ItemTemplate> </asp:TemplateField> </Fields> </asp:DetailsView>
DetailsView
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)