Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,


I need to insert the gridview row values into DB.


this is my Gridview
XML
<asp:GridView ID="GrdOptions" runat="server" AutoGenerateColumns="False"
Width="212px" ShowHeader="False">

 <Columns>

 <asp:TemplateField>
 <ItemTemplate>
 <asp:TextBox ID="txttask" runat="server" CssClass="Text" MaxLength="500"
Width="350px"></asp:TextBox>
 </ItemTemplate>

 </asp:TemplateField>
 <asp:TemplateField>
 <ItemTemplate>
 <asp:TextBox ID="txthrs" runat="server" CssClass="Text" MaxLength="500"
Width="80px"></asp:TextBox>
 </ItemTemplate>

 </asp:TemplateField>
 </Columns>
 </asp:GridView>


i need to check the each row that how many rows have tha values based on this only i need to insert only that row has value.

I need to show the summarise value of second textbox value while i enter a value in that text box.


Thanks in advance

Sucharitha
Posted
Updated 2-Jan-12 20:45pm
v4

1 solution

you can insert into a temp table and then update the main table based on some criteria in temp table
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900