Where is the Designer Code in 2.0 go As in 1.1

  • Thread starter Thread starter MSDN
  • Start date Start date
M

MSDN

Hello,

Where can I find the following in 2.0

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}


Thanks,

Sa
 
But where are they and can I view them physically without having to resort
to tricks( like view in browser by forcing a runtime error then view
detailed source. ).

Thank you,

SA
 
MSDN said:
But where are they and can I view them physically without having to resort
to tricks( like view in browser by forcing a runtime error then view
detailed source. ).

Thank you,

SA


The class you are looking for are generated at runtime or when you use
the asp.net pre-compiler utility. To view these classes you probably
would have to set debug="true" on that page and look in the Temporary
ASP.NET folders to find the source code. Just remember, you will not
see these classes in VS.NET
 
So to put anything in OnInit event handler I must override it.

Thank you,

SA
 

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

Back
Top