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?
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.
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.
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
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.
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