CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS MICROSOFT ASP.NET 2.0 DETAILS
Question :
what is the code behind technic how it impltements?
Contact   Contact
Category ASP.NET 2.0 Interview Questions
Rating (4.3) By 6 users
Added on 9/24/2007
Views 2588
Rate it!
Answers:

we can write page logic in two models
if we write page logic in .aspx file that is called code inlinemodel
if we write page logic in a separate file that is known as code behind model



 Posted by: swapna    

Contact swapna  Contact swapna

Code behind technich is the new feature of Asp.net 2.0 which provides the separation of logic code with that of designing code .

As in t he previous version of Asp.net all the programming logics as well as design code is being written in same file which make it more complex to edit and analys.

But in this code behind we have to separate file one is called ".aspx" file which take care of design part of the application as if we have to do any edition in design part we can do very easily.

And the secnd one is langauage specific file which may be of extension ".CS",".VB" as per of the language used by the program to write the programing Logics of the application.



 Posted by: Anu    

Contact Anu  Contact Anu

Code behind is the separation of the presentation from the logic.

Presentation that includes server/HTML controls are included in the .aspx page

And the code behind file (.aspx.cs/.aspx.vb) contains the logic using the event driven model.

The code behind file derives from the Page class and at runtime the a class derieved from the code behind class is created and the .aspx controls are embedded in to it.



 Posted by: vikas malukani    

Contact vikas malukani  Contact vikas malukani

when we write page logic on a seprate file with extension cs, partialy class, it is called code behind technic



 Posted by: Nirmal kumar sharma    

Contact Nirmal kumar sharma  Contact Nirmal kumar sharma


If you have the better answer, then send it to us. We will display your answer after the approval.
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

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL ASP.NET 2.0 Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/11680/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.7