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
 foot row insert problem in vb.net
Posted by chandan on  4/25/2010 2:23:23 PM Category: ADO.NET
Add to my favorites
Email to friend
hello guys,

i am trying to get the value of the text entered in the text box of footer row in the
gridview_rowCommand using this code
dim txtname as new textbox
txtname=girdview1.footterrow.findcontrol("txtNewName")

dim name as string = txtname.text

but the value of name is always this ""

i mean it has no value its null always can u tell me whts wrong. How i can get the value from the footer text box so that i can insert new records in the database

Post Your Reply Post New Question

 Viewer's Reply
Finding TextBox in GridView Footer Row.
Answered By Moderator1 on 4/26/2010 7:51:10 AM
Hi,

You need to find the control in the Footer row of the GridView as follows,

TextBox txtNewName=(TextBox)GridView1.FooterRow.FindControl("txtNewName");
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
The Beginner's Guide to Joomla
Website Magazine
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!