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
Programmers Heaven C# School Book - Free 338 Page eBook
Introduction to Web Applications Development
Windows 8: 50 Questions and Answers You Need to Make a Decision (Normally $9.95)