Have you tried walking through your code? If you add your
page object to the watch window, you can open up the
Page.Controls collection and look at which controls are
inside.
The Form is actually a control inside the page, so even if
you haven't added any controls to the page, the Form will
still be there.
>-----Original Message-----
>Hello All,
>
>I created a new ASP.NET web application and printed out
the number of
>controls in the page
>
>Response.Write(this.Page.Controls.Count.ToString( ));
>
>It shows a count of 3 even though I did not add any
controls to the
>page. Could anyone explain why ?
>
>Thanks !
>.
>
|