GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  Next Question 
 ASP.NET 2.0  |  Question 51 of 161    Print  
Describe the difference between inline and code behind - which is best in a

  
Total Answers and Comments: 2 Last Update: May 06, 2007   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: rahul shah
 
Classic ASP uses inline code. HTML and asp code <% %> are embedded in the same file. (.asp)

One of the enhancements in ASP.NET framework is seperation of HTML code (UI) and the code behind that web page (.cs file). This is easier to maintain and it has several other advatnages.

Above answer was rated as good by the following members:
shramika.kanekar
September 12, 2005 14:41:55   #1  
Swapna        

RE:
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.
 
Is this answer useful? Yes | No
May 06, 2007 01:23:36   #2  
rahul shah Member Since: May 2007   Contribution: 2    

RE: Describe the difference between inline and code be...
Classic ASP uses inline code. HTML and asp code < > are embedded in the same file. (.asp)

One of the enhancements in ASP.NET framework is seperation of HTML code (UI) and the code behind that web page (.cs file). This is easier to maintain and it has several other advatnages.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Latest Answer : Server-side code run at the server. It is a seprated file from html page.Client-side code is processd by browser and run at the client side ...

Latest Answer : There is the ability to use both server side and client side code with in the code behind. Generally though the code behind is server side code. This code acts on Events that are fired that are not handled by the client side script.(JavaScript,vbscript, ...

What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

Latest Answer : Dataset can represent an entire database in memory with full of tables,views and relations.Dataset is bulk loaded rather than loaded on demand.Dataset is designed to work without a continuing connection to the original datasource.There is no concept of ...

Latest Answer : Differneces between Single Call & Singleton.Single Call objects service one and only one request coming in. Single Callobjects are useful in scenarios where the objects are required to do afinite amount of work. Single Call objects are usually not required ...

Latest Answer : ORELSE - Either of the two expressions is true. If the first expression is True, the second is not evaluated. - ex. are from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/valrfOrElseOperator.aspDim A As Integer = 10Dim B ...

Latest Answer : Classic ASP uses inline code. HTML and asp code are embedded in the same file. (.asp)One of the enhancements in ASP.NET framework is seperation of HTML code (UI) and the code behind that web page (.cs file). This is easier to maintain and ...

Latest Answer : State Server is used for handling sessions in a web farm. In a web farm, make sure you have the same in all your web servers. Also, make sure your objects are serializable. For session state to be maintained across different web servers in the web farm, ...

What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

Latest Answer : hai,Server.Transfer()-It ends up the execution of current form  and  begins execution with new web form.In server.transfer() execution is transferred so that in the url we will find previous webform.Server.Execute()-it begins execution with ...


 Sponsored Links

 
Related Articles

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php&quot; document ready function var highlighted
 

jQuery Interacting with Other Code

jQuery Interacting with Other Code We learned with our sorting and paging code that we can t treat the various features we write as islands The behaviors we build can interact in sometimes surprising ways; for this reason it is worth revisiting our earlier efforts to examine how they coexist with t
 

jQuery Completed sorting and paging code

Learning jQuery The Finished Code The completed sorting and paging code in its entirety follows mosgoogle geshibot lang php&quot; fn alternateRowColors function tbody tr odd this removeClass even addClass odd ; tbody tr even this removeClass odd addClass even ; return this; ; document
 

C++ Inline Functions

C Inline Functions In this C tutorial you will learn about Inline function what is inline function reason for the need of inline function what happens when an inline function is written general format of inline function explained with example mosgoogle center What is Inline Function Inline functions
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(&ldquo;x=%d y=%d&rdquo;,x,
 

The Interview Snafu

How to turn someone else&rsquo;s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won&rsquo;t get over the line without a polished, prof
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

Difference between Scholarship and Grant

Difference between Scholarship and Grant While both scholarships and grants allow students to pay for their tuition without having to pay the money back there are a number of key differences between the two Knowing the difference between grants and scholarship will make it much easier for students t
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape