Home > DeveloperSection > Interviews > Difference between src and Code-Behind

Posted on    October-25-2010 12:00 AM

 ASP.Net ASP.Net 
Ratings:
 1 Answer(s)
  956  View(s)
Rate this:

Pushpendra Singh

Total Post:241

Points:1205
Posted on    October-26-2010 12:00 AM

With the ‘src’ attribute, the source code files are deployed and are compiled by the JIT as needed.
Though the code is available to everyone with an access to the server (NOT anyone on the web), this method is preferred as it does away with the compilation of the DLLs.

‘CodeBehind’ attribute just has the VS.NET associate the code file with the aspx file. This is necessary since VS.NET automates the pre-compiling that is harder by hand.

Due to this the ‘Src’ attribute is done away with having only a DLL to be deployed enhancing the protection level even though it can be decompiled.


Don't want to miss updates? Please click the below button!

Follow MindStick