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 89 of 164    Print  
my interviewer asked me i want maintain same header and footer in number of pages what is the way to do minimum level of code i use? i said user control he again asked what areall the other ways?

  
Total Answers and Comments: 26 Last Update: July 07, 2009     Asked by: rajini 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Santhos
 

u have to use Master Page

Santosh



Above answer was rated as good by the following members:
karunakk
  Sorting Options  
  Page 1 of 3   « First    1    2    3    >     Last »  
October 14, 2006 04:28:52   #1  
Santhos        

RE: my interviewer asked me i want maintain same heade...

u have to use Master Page

Santosh


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
October 14, 2006 13:42:49   #2  
Chand        

RE: my interviewer asked me i want maintain same heade...
you can do this with user Countrols make one user countrol and add this pages where u want.

Chand.

 
Is this answer useful? Yes | No
October 18, 2006 08:15:07   #3  
Pallavi        

RE: my interviewer asked me i want maintain same heade...
use an usercontrols.
 
Is this answer useful? Yes | No
October 18, 2006 10:09:28   #4  
Neelima        

RE: my interviewer asked me i want maintain same heade...

It can be done by both ways user controls and Master Pages.

Master page is not available in asp.net 1.1


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
October 30, 2006 05:56:16   #5  
Muhammad Anees        

RE: my interviewer asked me i want maintain same heade...

AOA!

To maintain same header and foor on all pages of a site add user controls. Define header style in header user control and footer logic and interface in footer user control.Then only pick drag and drop header and footer on your pages.


 
Is this answer useful? Yes | No
November 08, 2006 00:08:11   #6  
Amit        

RE: my interviewer asked me i want maintain same heade...

you can mantain the same header and footer throught the application defining that Hedaer and Footer in Global.aspx event session_start and session_end.

Header will be at session_start

Footer will be at session_end.

It will render before excuting any page.


 
Is this answer useful? Yes | No
November 18, 2006 02:05:33   #7  
pradeep reddy        

RE: my interviewer asked me i want maintain same heade...
u can do this with cascaded style sheets(css) very easily
 
Is this answer useful? Yes | No
November 22, 2006 02:30:25   #8  
Chandan Agarwal        

RE: my interviewer asked me i want maintain same heade...
Yes u can do it. There are two way.1. If the header & footer is only colour based then use css 2. If it contanis images and data then create User Control
 
Is this answer useful? Yes | No
December 08, 2006 10:39:34   #9  
nraj71 Member Since: December 2006   Contribution: 2    

RE: my interviewer asked me i want maintain same heade...

Other way is using custom control utility.

Create Header /Footer as UserControls.

define Custom control in class file .Here state location of header control as starting control and Footer as last control in render event.

Now when ever u add new webform in your application inherit the class of webform from the custom control class.Runtime it will take header and footer .No need to drop User controls on each page you add.


 
Is this answer useful? Yes | No
December 22, 2006 07:11:45   #10  
preetamjain Member Since: December 2006   Contribution: 3    

RE: my interviewer asked me i want maintain same heade...
by make template of ur application u can easily call each page in template . and in main template u use header and footer once...any Query plz contact preetamjain@gmail.com
 
Is this answer useful? Yes | No
  Page 1 of 3   « First    1    2    3    >     Last »  


 
Go To Top


 Sponsored Links

 
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