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 |
What is the difference between a multi-layer and multi-tier applications?
What is the extension of master page in asp.net?
What is server redirect?
How cross page posting is done in Asp.net 2.0?
How would ASP and ASP.NET applications run at the same time on the same server?
a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?
Explain diff. Betn dataset and recordset?
What definition correctly defines a label server control with the name set to lblHoop? a) <asp:Label name=?lblHoop? runat=?server? /> b) <Label id=?lblHoop? runat=?server? /> c) <asp:Label id=?lblHoop? runat=?server? /> d) <server label name=?lblHoop? runat=?asp? />
What is x xss protection?
what is structured data format?
In which event of the page viewstate is available?
What is ashx file in asp.net?