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
What is paging in context of Memory?
Do you know caching feature?
Why session is more secure than cookies?
What is client side state management?
How is the asp.net mvc architecture different from others? : asp.net mvc
I’m having some trouble with cas. How can I diagnose my problem?
What is voluum?
What is server side session?
Can you nest updatepanel within each other?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
What does mean by a neutral culture?
What is a url string?
What is base class of button control in .net?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
Where do we store our connection string in asp.net application?