No CodeBehind

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been doing code behind pages in ASP.Net for about two years.
Now I need to debug a production page. I would like to move all the code
from the code behind page and into the contact.aspx page. I will enable trace
to find my problem.
Can anyone give me a link to some sample page with no 'Behind'?

Arne.
 
Ethem,
I was trying to use Trace.Warn print trace messages to the browser and I
didn't want to recompile the while application.
 
Hi Arne,

Just that I wonder; you want to put the whole code into the aspx file,
right? What about the codebehind dll? Aren't you going to have two
definitions if you do it that way? As far as I remember, the inline code will
be compiled into a temporary web.dll file, but eventually you will have the
classes defined twice.

Ethem
 
I have a production app and I can not always touch the codebehind.dll for a
simple bug. It would cause too much of an interuption of a production system.
With code inside I can do bug fix and fix the codebehind.dll at a more
appropriate time.
 
I have a production app and I can not always touch the codebehind.dll for
a
simple bug. It would cause too much of an interuption of a production system.
With code inside I can do bug fix and fix the codebehind.dll at a more
appropriate time.

I am NO expert on any of this, but can you do this instead:

<%@ Page Language="vb" src="default.aspx.vb" %>

I've done that in the past when I had to work on some pages but didn't have
VS.net handy to compile things with.

-Darrel
 
Back
Top