Describe the difference between inline and code behind -
which is best in a loosely coupled solution Tightly coupled
- INLINE
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / raghumadhav tirunagari
inline function bind at compile time can write in aspx page
with in <% %> .
| Is This Answer Correct ? | 2 Yes | 1 No |
If you are using components in your application, how can you handle exceptions raised in a component?
What is the difference between CLICK and MOUSE DOWN Event ?
We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?
Where can I get the details on migration of existing projects using various technologies to asp.net?
What is different authentication mechanisms used in ASP.NET?
when user is logged on the information is saved in a cookie, what is the name of that cookie?
How To Authenticate Your Web service??
What?s the difference between Response.Write() andResponse.Output.Write()?
How ViewstateMac works?
Explain the boxing and unboxing concept in .net?
Mention few asp.net validators.
Define a multilingual website?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)