GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 159 of 165    Print  
asp.net code behind pages
When using code behind pages, which library must access file import from asp.net environment


  
Total Answers and Comments: 4 Last Update: December 18, 2009     Asked by: rekharaju 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 06, 2008 03:50:19   
bb.geetha Member Since: May 2008   Contribution: 8    

RE: asp.net code behind pages
Code through this link u may get required information

http://www.4guysfromrolla.com/webtech/chapters/ASPNETUnleashed/ch06.3.shtml

 
Is this answer useful? Yes | No
June 01, 2009 06:07:41   
ponss Member Since: June 2009   Contribution: 3    

RE: asp.net code behind pages
using System.IO;
 
Is this answer useful? Yes | No
September 16, 2009 09:03:03   
reach_yousuf Member Since: August 2008   Contribution: 13    

RE: asp.net code behind pages

Inherits System.Web.UI.Page


 
Is this answer useful? Yes | No
December 18, 2009 05:52:59   
amitleo81 Member Since: December 2009   Contribution: 1    

RE: asp.net code behind pages
ASP.Net uses two ways/techniques of coding pages

1) Inline code
2) Code behind

1) In Inline code code is directly embedded directly within asp.net aspx page.

2) In code behind technique we have a seprate class that contains our logic for the asp.net aspx page. There by providing a clean separtion of presentation and logic. For code behind technique we have two ways to do it

a) Either use codefile attribute of page property in aspx page to do the logic of code it should specify the path of code behind file.This attribute is used together with Inherits attribute to associate a code behind source file with web page.This attribute is valid only for compiled pages

b) Either we use Inherits attribute where we can specify the class which has been derived from Page class.This is used with codefile attribute which contains the path to the source file for code behind class.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

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

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

Page copy protected against web site content infringement by Copyscape