In Visual Studio 2005, once we create a .aspx file, there is a .aspx.designer.cs file auto-generated. In this file, there are control declarations. I want to know how to generate the file by ourself through programming. That is to say, how can I get the information about the controls in the .aspx file, such as their type, ID. The only method I known is using xml.