Describe the difference between inline and code behind - which is best and why ?

Questions by NithyaSurendran

Showing Answers 1 - 4 of 4 Answers

PavanKumar

  • Oct 27th, 2006
 

Hi,Generally the terms in-line code and code behind are the 2 approaches in which we can code our applications. In our Windows based applications the designing and Programming are both implemented in the same page whereas in an web-application we have the option of either going with the code behind or an in-line code in ASP.Net. In-ine code is generally can be done by adding our code in the HTML page of our ASP.Net application. Code behind can be done in our cs file of our application. Here the Designing is different from the Coding.Thanks & RegardsPavanKumar.S

Urvil Shah

  • Nov 29th, 2006
 

Hi,

Abov answer is right. If you want to make the sepration between the HTML file and the coding file then you can use CodeBehindFile otherwise use in-Line method. It is up to choice but most of .NET users use Code Behind way while ASP users use Inline method.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions