AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 About Child controls in grid view
Posted by Rajesh on  2/27/2012 8:04:39 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
Can any one please tell me how to bind data into child controls of Gridview(like text box inside Gridview) from database?

Post Your Reply Post New Question

 Viewer's Reply
Bind Textbox Inside GridView
Answered By Moderator1 on 2/28/2012 6:35:09 AM
Hi,

Either you place the Textbox in ItemTemplate or EditTemplate, you can bind the Textbox as below:
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("emp_name")%>' ></asp:TextBox>
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Take Advantage of Oracle's 2 Day DBA Course
Simply JavaScript - Free 150 Page Preview!
Programmers Heaven C# School Book - Free 338 Page eBook