Describe the difference between inline and code behind - which is best in a

Showing Answers 1 - 4 of 4 Answers

Swapna

  • Sep 12th, 2005
 

Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page.

  Was this answer useful?  Yes

rahul shah

  • May 6th, 2007
 

Classic ASP uses inline code. HTML and asp code <% %> are embedded in the same file. (.asp)

One of the enhancements in ASP.NET framework is seperation of HTML code (UI) and the code behind that web page (.cs file). This is easier to maintain and it has several other advatnages.

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