Difference between inline and code behind – which is best?

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. 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 separation of HTML code (UI) and the code behind that web page (.cs file). This is easier to maintain and it has several other advantages.

Tagged , . Bookmark the permalink.

2 Responses to Difference between inline and code behind – which is best?

  1. URL says:

    What a lovely weblog. I will surely be back once again. Please sustain writing!

Leave a Reply