CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.
Get Your Dream Job Now - www.vyoms.com
Sponsored Links
Interview Questions
Our Services

INTERVIEW QUESTIONS MICROSOFT ASP.NET 2.0 DETAILS
Question :
Describe the difference between inline and code behind - which is best in a


Category ASP.NET 2.0 Interview Questions
Rating (4.2) By 40 users
Added on 7/28/2011
Views 1233
Rate it!
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.

Better security also.
Sepa



Posted by: sandeep

Contact sandeep Contact sandeep

The best example of inline coding is classic asp which is too messy because both server side and client side code is written on the same page while on the code behind (asp.net), server side code is separated from the client side code.



Posted by: Anuj Tripathi

Contact Anuj Tripathi Contact Anuj Tripathi

Inline code is written in HTML file where as code behind is written in separated file

The be4st use is to write code in separate file.


Regards,
Nicku



Posted by: nicku

Contact nicku Contact nicku

If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What are delegates?

    View Answer
    What is difference between OR and ORElse?

    View Answer
    What is difference between singleton and single call?

    View Answer
    What are client activated objects and server activated objects?

    View Answer
    Which namespace is used by ADO.NET?

    View Answer

    What is delay signing?



    View Answer
    What is CLR?
    View Answer
    What are webservices?

    View Answer
    What is .NET remoting?

    View Answer
    What is an assembly

    View Answer
    How would you implement inheritance using VB.NET/C#?

    View Answer
    Can you explain what inheritance is and an example of when you might use it?

    View Answer
    How does VB.NET/C# achieve polymorphism?

    View Answer
    What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?

    View Answer
    If I'm developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

    View Answer
    Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

    View Answer
    What is the life cycle of an asp.net page?

    View Answer
    What is Viewstate?

    View Answer
    How can we implement a Identity (SQL Server) call in an asp.net page?

    View Answer
    How Dataadapter.fill works?

    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL ASP.NET 2.0 Interview Questions & Answers

    User Options
    Latest 20 Questions
    How to create arrays in JavaScript?
    How can JavaScript codes be hidden from old browsers that don?t support JavaScript ?
    What is namespacing in JavaScript and how is it used?
    What are the decodeURI() and encodeURI()?
    How are DOM utilized in JavaScript?
    Write the point of difference between web-garden and a web-farm?
    What is the ?Strict? mode in JavaScript and how can it be enabled ?
    What are escape characters?
    How can convert the string of any base to integer in JavaScript?
    What is the difference between ViewState and SessionState?
    Write the code for adding new elements dynamically ?
    Between JavaScript and an ASP script, which is faster?
    What are JavaScript types ?
    What qualities do you look for in a boss?
    How you would be an asset to this company?
    Why should we hire you?
    What is project implementation?
    Differentiate Public and Private Accounting?
    Explain what is compound journal entry ?
    Differentiate between provision and reserve?


    Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0 Seconds