Describe the difference between inline and code behind -
which is best in a loosely coupled solution Tightly coupled
- INLINE
Answer Posted / m.sivakumar
Difference between inline and code behind - which is best?
Answers:
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.
Inline Code:- Inline Code written along side the HTML in a page.
Code Behind:- Code Behind is simply a separate code file linked to your web form or .aspx page. Code is stored in separate file which is identified by a .cs suffix or .vb suffix.
Code Behind is the best.
Because:-
Separation of the content from the code. It is practical to have a designer working on a markup while a programmer writes code.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How does session work?
can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?
What is rich control in asp.net?
What is the advantage of using Windows authentication in a Web application?
What is Pre-Render event in ASP.NET?
What is session authentication?
What are the built-in objects in asp.net?
What are the differences between clr & cts?
List the events in page life cycle.
What are the elements of a website?
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
Describe state management in asp.net?
Explain the purpose of storyboard.targetproperty.
What are the two properties that are common on every validation control?
Explain the asp.net mvc folder conventions? : asp.net mvc