Type
System.Web.UI.Page find a control by type
Submitted by Ben Hodson on Tue, 03/18/2008 - 19:54
There's not a lot of information on how to find a control by it's type. Of course, most of us know you can find a control by it's "ID" property with the Page object's public method "FindControl()". Here's an example of how to do that:
// find a control on the page by it's IDstring sIdToFind = "RequiredFieldValidator1";
// use the FindControl() and pass the ID to search for
Recent comments
14 hours 6 min ago
1 day 13 hours ago
3 days 14 hours ago
4 days 4 hours ago
4 days 15 hours ago
4 days 21 hours ago
5 days 50 min ago
1 week 21 hours ago
1 week 1 day ago
1 week 4 days ago