CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • 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 (0.4) By 1744 users
    Added on 7/28/2006
    Views 2681
    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

    The Inline Is best because the Script validation and all is done On Client side first.



    Posted by: Sangram Nayak    

    Contact Sangram Nayak Contact Sangram Nayak

    InLine Code is directly embedded in your asp.net page, while in
    code behind model you'll have two file one for C# code or VB.Net code and other for html code.
    so one will be an aspx and other aspx.cs file



    Posted by: anu    

    Contact anu Contact anu

    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

    User Options
    Sponsored Links


    Copyright ©2003-2014 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.03125 Seconds