Page.FindControl
Find a control in a TemplateField programmatically
Submitted by Ben Hodson on Wed, 03/19/2008 - 20:56
When you add a DetailsView or GridView control to your page, you may need to programmatically access that control in the code behind. You might look at the System.Web.UI.Page object and see it has a FindControl (http://msdn2.microsoft.com/en-us/library/31hxzsdw.aspx) method built in for you. If you thought that you could get ANY control on the page...
You would be wrong.
Popular Articles
Last viewed:
- Getting Started with .NET Entity Framework
- C# Download File with Progress Bar
- Using Windows as an FTP Client
- ASP.NET Programatically Add META Keywords and META Description Tags
- ASP.NET 301 Redirect for Search Engine Compliant Redirects
- Get Index Fragmentation Percentage for all Tables in SQL Server Database

Recent comments
13 hours 18 min ago
1 day 13 hours ago
3 days 14 hours ago
4 days 3 hours ago
4 days 14 hours ago
4 days 20 hours ago
5 days 2 min ago
1 week 20 hours ago
1 week 1 day ago
1 week 4 days ago