In my project all of the .aspx pages inherit from a custom base class page which in turn inherits from System.Web.UI.Page. I want to find the controls in current page. for that one I am using foreach loop
foreach(control c in page.controls)
for this I am unable to cast my current page to system.web.ui.page. how to cast the current page to system system.web.ui.page?