What is the Difference between inline and Codebehind in Asp.net 1.2

26 views
Skip to first unread message

satheesh p

unread,
Oct 19, 2005, 9:39:32 AM10/19/05
to Techdot...@googlegroups.com

Hi Guys..
 
        What is the Difference between codebehind and inline coding in asp.net from the performance and compilation point of view..
--
Satheesh P
Software Engineer.

Shivprasad Koirala

unread,
Oct 19, 2005, 11:30:50 PM10/19/05
to .NetIndia
inline coding is not precompiled while behind code is

-------
Regards ,
C#, VB.NET , SQL SERVER , UML , DESIGN Patterns Interview question book
http://www.geocities.com/dotnetinterviews/
My Interview Blog
http://spaces.msn.com/members/dotnetinterviews/

Shivprasad Koirala

unread,
Oct 19, 2005, 11:43:34 PM10/19/05
to .NetIndia
sorry guys thats a wrong answer which i had given down.
With ASPX you have to deploy the code also and with behind code you
have only copy the compiled DLLS

Sorry for prev post i thought ASP inline and ASPX behind code

Shivprasad Koirala

unread,
Oct 19, 2005, 11:43:42 PM10/19/05
to .NetIndia

satheesh p

unread,
Oct 20, 2005, 7:30:26 AM10/20/05
to Techdot...@googlegroups.com
Ok Shivprasad..
 
        How the compilation differs... even in codebehind.. u have to copy the aspx pages...
 
Thanks
Satheesh       

 

BabuLives

unread,
Oct 21, 2005, 2:39:34 AM10/21/05
to .NetIndia
during compilation,

aspx.cs file is compiled to separate class which derives page
class.This compiled class is then inherited by the class generated from
the .aspx file by the page parser,Whereas in inline coding where cs and
html are embedded, the aspx file is compiled to separate class which is
inherited by page class.

Regards,
Satheesh

BabuLives

unread,
Oct 21, 2005, 2:43:02 AM10/21/05
to .NetIndia
Sorry... in inline coding where cs and html are embedded, the aspx file
is compiled to separate class which inherits page class.

ST Sreetharan

unread,
Oct 21, 2005, 3:04:02 AM10/21/05
to Techdot...@googlegroups.com
Hi
Writing code in code behind increase the security of your code too. while deploying you need to give .aspx files but not necessary to give aspx.cs files, instead giving the dll is enough. If you are writing codes as inline, client can see the code. we can say this as code hiding na??
 
Sreetharan S.T
Reply all
Reply to author
Forward
0 new messages