Where the Control definitions located?

When i createad a web application in Visual Studio .NET 2005, and drag-and-drop some controls on the page, i need to see the definitions of these controls, where are located I can not find them the only files i can see is for example (Default.aspx) and Default.aspx.cs (which not contains the definitions of controls).

regards




Answer this question

Where the Control definitions located?

  • Rob McDonald

    What exactly do you mean by control definition The controls are implemented in assemblies you reference, such as System.Web.dll, if that's what you mean.



  • amritpal

    I meant in visual studio 2003 when drag-drop control in page and switch to code behind u see the control declaration for example

    protected System.Web.UI.TextBox oTextBox;

    in VS 2005 i can not see it in code behind of page, where it located

    Hope i explain what i want .



  • MKodounis

    All the control declaration and initilization is wrapped inside the associated designer class in VS2005. Click on show all files tab button in the solution explorer to view the class.

  • Henry_L

    Don't know if it's what you're looking for, but if you created the page/form from within Visual Studio 2005 two .cs files are now created for each page/form : one with the code-behind, and the other that contains everything else (normally this file is the one that's used to add code manually.

    In my case, simply clicking the [+] near the page/form .cs file in the project explorer pane shows two files (for forms) : a .cs file and a .resx file. The .cs file contains the code you're looking for.


  • Where the Control definitions located?