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
Explain about asp.net state management?
How to retrieve user name in case of Window Authentication?
Describe a Windows Service and its lifecycle ?
What is tracing? Where is it used?
What's the difference between viewstate and sessionstate?
How do you initiate validation on the server manually? What are two situations when you might you want to do that?
how to transfer the file from client to server using asp.net
What is the concept of postback in asp.net?
How to find last error which occurred in Asp.net ?
Explain what does mvc represent in asp.net? : asp.net mvc
can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com
where can i gather the materials for MCP certification
what are the web form events available in asp.net?
What is session management in web application?
How to change Master page in ASP.Net using code?