productid(primary key) productcategory Girthfrom GirthTo
Itemid(primary key) Itemname </pre lang="text"> 3.Pricefix <pre lang="vb">PriceId(primarykey) Itemid(foreign key of Itemcre) Productid(foreign Key of Categorycrt) Rate</pre lang="text"> I need to update the Pricefix table...please help me with the query for updating the pricefix tabletable..... I have a gridview for pricefix table My aspx page <pre lang="html"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" onrowcancelingedit="GridView1_RowCancelingEdit" onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating" > <columns> <asp:TemplateField HeaderText="PriceId"> <itemtemplate> <asp:Label ID="lblPriceId" runat="server" Text='<%#Eval("PriceId") %>'>'> </itemtemplate> <asp:TemplateField HeaderText="ItemName"> <itemtemplate> <asp:Label ID="lblItemId" runat="server" Text='<%#Eval("Itemname") %>'>'> </itemtemplate> <edititemtemplate> <asp:TextBox ID="txtItemId" runat="server" Text='<%#Eval("Itemname") %>'>' > </edititemtemplate> <asp:TemplateField HeaderText="ProductCategory"> <itemtemplate> <asp:Label ID="lblPdtId" runat="server" Text='<%#Eval("ProductCategory") %>'>'> </itemtemplate> <edititemtemplate> <asp:TextBox ID="txtPdtId" runat="server" Text='<%#Eval("ProductCategory") %>'>' > </edititemtemplate> <asp:TemplateField HeaderText="Rate"> <itemtemplate> <asp:Label ID="lblRate" runat="server" Text='<%#Eval("Rate") %>'>'> </itemtemplate> <edititemtemplate> <asp:TextBox ID="txtRate" runat="server" Text='<%#Eval("Rate") %>'>' > </edititemtemplate> <asp:TemplateField HeaderText="Action"> <itemtemplate> <asp:LinkButton ID="edit" runat="server" CommandName="Edit" Text="Edit"> <asp:LinkButton ID="Delete" runat="server" CommandName="Delete" Text="Delete"> </itemtemplate> <edititemtemplate> <asp:LinkButton ID="Update" runat="server" CommandName="Update" Text="Update"> <asp:LinkButton ID="Cancel" runat="server" CommandName="Cancel" Text="cancel"> </edititemtemplate> </columns>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)