Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to save C# class generated from ASPX page?

Reply
Thread Tools

How to save C# class generated from ASPX page?

 
 
derek
Guest
Posts: n/a
 
      12-17-2004
I am using Visual Studio .NET Professional (first version) and am
trying to view
the generated C# file that is created from an ASP.NET (.aspx) page when
its first
requested. I can see where its being placed but it must be removed
after the
MSIL code is generated for it. Do you know any way to configure
vstudio to keep
the generated class files around so I can view them? I would like to
analyze the
generated code.. especially when I get an error in the page.

Thanks,
Derek

ps. this is where it says the generated files are placed prior to
compilation:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607\Temp orary ASP.NET
Files\315c01\83249c80\3856d1b7

 
Reply With Quote
 
 
 
 
Anders Norås [MCAD]
Guest
Posts: n/a
 
      12-17-2004
>I am using Visual Studio .NET Professional (first version) and am
> trying to view
> the generated C# file that is created from an ASP.NET (.aspx) page when
> its first
> requested. I can see where its being placed but it must be removed
> after the
> MSIL code is generated for it. Do you know any way to configure
> vstudio to keep
> the generated class files around so I can view them? I would like to
> analyze the
> generated code.. especially when I get an error in the page.


Enable debugging by including a <%@ Page Debug="true" %> directive in the
ASPX files or a <compilation debug="true"> statement in web.config. Then
look for the generated CS files in the temporary folder (eg. 315c01`..) in
\%SystemRoot%\Microsoft.NET\Framework\v1.0.nnnn\Te mporary ASP.NET Files.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible for me to get the class file of dynamically generated proxy class? billdavidcn@gmail.com Java 2 08-20-2007 03:05 AM
Calling a local class from a run-time generated class Florian Weimer Java 2 01-09-2007 08:54 AM
(jsp) class loader not finding generated JSP class unixfreak0037@gmail.com Java 1 12-14-2005 09:35 AM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM
adding main.aspx.vb & main.aspx.resx under aspx John M ASP .Net 1 05-29-2005 09:27 PM



Advertisments