ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What are the advantages and dis advantage of the asp.net code-behind feature?

user-image
تم إضافة السؤال من قبل Tilahun Dessalegn , Commuter Programmer , FDRE Information network security Agency
تاريخ النشر: 2015/07/07
Hamid Anjum
من قبل Hamid Anjum , Team Lead \ Sr. Software Engineer , University of Business and Technology, Jeddah

Hi Dina Sorry for late reply I was busy with projects

 

Code behind Advantages:

  • Compile time warnings
  • Type safety
  • Better debugging support
  • Separate file\\layer for markups ".aspx" and separate file\\layer for code file ".cs"
  • You can reuse code in multiple forms\\pages

 

Code behind dis advantages:

  • Performance are enhanced by putting that code inline. Code behind is  file based architecture it makes your application little heavy because The code for the page is compiled into a separate class from which the .aspx file derives.
  • Hard to maintain files on other side in "inline code" you just need to rename one file no dependencies there in inline.

 

---------------------------

 

I prefer code behind approach because you can implement OOP in perfect way.

 

best regards,

Hamid Anjum

 

 

 

 

Zeeshan Amjad
من قبل Zeeshan Amjad , CTO

Take a look at the discussion here

 

http://p2p.wrox.com/asp-net-1-x-2-0-application-design/3170-discussion-code-behind-vs-inline-asp-net.html

 

المزيد من الأسئلة المماثلة