Literal object definitions in asp.net

M

mirirom

hi, i'm wondering if someone can explain where object instances are
actually defined in the page creation lifecycle of asp.net pages.

for instance, you create a webform, add a few server controls, set
some props, compile, etc. and voila! the page is displayed.

however, when you view the underlying class for your page, you can see
the declarations for your server controls but not their definitions. where
are these guys actually instantiated? is there some behind the scenes
magic in the call to base.onInit()?

thanks for the input!

..:: mirirom ::..
 
L

Lostinet.Web Support

make a mistake in the aspx file , such as :

<% @ Page %>
<html>
<body>
<form runat=server>
<asp:button runat=server Text="Button"
OnClick="NotExistsMethod"></asp:button>
</form>
</body>
</html>

and visit the page .

see the compiling source when you see the error
 
M

mirirom

wow! i had no idea. thanks, this definitely sheds a lot
of light on things.

thanks again,

mirirom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top