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 1241
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
    Mention the options available to a company for the reduction of capital.
    Give the journal entry for reduction of liability in respect of the uncalled amount on Shares.
    Mention the ways by which a company can alter share capital.
    Name the forms of internal reconstruction.
    Mention the situations which call for internal reconstruction.
    State the differences between internal and external reconstruction.
    What is external reconstruction?
    What is internal reconstruction?
    What is the difference between merger and acquisition?
    What are the disadvantages of amalgamation?
    What are the advantages of amalgamation?
    Explain briefly the methods of calculating purchase consideration.
    What is purchase consideration?
    What is a transferee company?
    What is a tranferor company?
    Explain accounting of amalgamation.
    Why Amalgamate?
    How is Amalgamation different from a Merger?
    What is merger?
    Explain the types of Amalgamation?



    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

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

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




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



    Cache = 0 Seconds