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 many types of validation are there?
What are the new login controls in asp.net 2.0?
What is route in web api?
How can you dynamically add user controls to a page?
How can we Validate a Controls in ASP.NET page using JavaScript?
What is the equivalent of date() and time() in asp.net?
Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc
How many validators do ASP.NET have?
How does output caching work in ASP.NET?
Which data type does the rangevalidator control support?
In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?
What is in a session cookie?
Define static member?
Explain the difference between the web config and machine config.
Can we have a web application running without web.config file?