Click here to Skip to main content
15,885,817 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using gridview in bind using TemplateField.
I am not able to store TemplateField data in database.

Please help me, give me some sollution.
Posted
Comments
Orcun Iyigun 23-Nov-12 7:12am    
What have you tried? Rectify your problem and ask a more specific question?

you need to do something like below :

C#
TextBox txt1 = (TextBox)gvSamplePrice.Rows[i].FindControl("YourTextBoxId");


then use txt1.Text in your code.
 
Share this answer
 
Hi

Can you please refer the following url. You may get some hints.

http://forums.asp.net/t/1431084.aspx/1[^]
 
Share this answer
 
Comments
Dominic Abraham 23-Nov-12 11:37am    
If the solution is helpful don't forget to mark it as answer. So that it may help others.

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