Type

System.Web.UI.Page find a control by type

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 ID
string sIdToFind = "RequiredFieldValidator1";
 
// use the FindControl() and pass the ID to search for