CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions OneStopTesting.com - Testing EBooks, Tutorials, Articles, Jobs, Training Institutes etc.
OneStopGate.com - Gate EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopMBA.com - MBA EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopIAS.com - IAS EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopSAP.com - SAP EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopGRE.com - of GRE EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.

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 1261
Rate it!


Answers:

Source: CoolInterview.com

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.


Source: CoolInterview.com



Source: CoolInterview.com

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
Source: CoolInterview.com



Posted by: sandeep

Contact sandeep Contact sandeep

Source: CoolInterview.com

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.
Source: CoolInterview.com



Posted by: Anuj Tripathi

Contact Anuj Tripathi Contact Anuj Tripathi

Source: CoolInterview.com

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
Source: CoolInterview.com



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
India News Network

Latest 20 Questions
Will the new LMS be easy to set up?
Does this LMS contain collaborative features?
How easy is it to store or create content inside the LMS?
What are learning management systems?
How to create a sub-navigation menu ?
How to Resizing and Moving the Map ?
How to Add a Google Map
Process of Adding Your Own Marker Image Basekit ?
How to Added the Embed Code in BaseKit
Setting the Background Color of the Section
Adding a Flickr Image Gallery to Basekit
How to Add Media in basekit ?
How to download/edit sites made with BaseKit Site Builder?
How can Deleting Columns ?
Setting Up & Managing Columns ?
How does BaseKit work?
List out some best practices for Unity 3D?
Explain what is Prefabs in Unity 3D?
Mention what is the function of Inspector in Unity 3D?
Mention important components of Unity 3D?



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.015625 Seconds