question&please answer

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2007
Posts: 29
Reputation: aravindkishore is an unknown quantity at this point 
Solved Threads: 1
aravindkishore aravindkishore is offline Offline
Light Poster

question&please answer

 
0
  #1
Jul 16th, 2007
Hi everybody,I faced one interview question in interview that ,

Where should you write the code(for properties like back ground color etc) which applies for every page of your website when application of your website starts? and please give the example also.

Please give the answer.

Thank you,
Aravind
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 83
Reputation: ProgrammersTalk is an unknown quantity at this point 
Solved Threads: 7
ProgrammersTalk's Avatar
ProgrammersTalk ProgrammersTalk is offline Offline
Junior Poster in Training

Re: question&please answer

 
0
  #2
Jul 16th, 2007
seperate CSS file it's much more organized hehe.. give example?

* {
background-color: #000000
}

in something.css
The ProgrammersTalk Community | Programming & Marketing | Buying & Selling Script
Hang out place of novice and intermediate programmers
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,580
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Solved Threads: 52
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: question&please answer

 
0
  #3
Jul 16th, 2007
If you're developing in ASP.NET, you'd use the .css file ProgrammersTalk mentioned on a master page, and have all your content pages use the same master, so as to ensure that the style is employed on all of your pages.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 29
Reputation: aravindkishore is an unknown quantity at this point 
Solved Threads: 1
aravindkishore aravindkishore is offline Offline
Light Poster

Re: question&please answer

 
0
  #4
Jul 16th, 2007
Thanks for your valuable answers.

Is there any thing like if click a button something should happen in all of web pages(like change of background color).If Yes Where should I place the code and how?

Please answer.

Thank you,
Aravind.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,580
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Solved Threads: 52
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: question&please answer

 
0
  #5
Jul 16th, 2007
If it were me, and mind you I'm still quite new to ASP, I'd put it in the master page and store the change in a cookie or session variable. The master page is for material (including layout) that will be rendered on every page, and you just specify parts of it wherein the content will vary by page. Do some research on how to use them.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 29
Reputation: aravindkishore is an unknown quantity at this point 
Solved Threads: 1
aravindkishore aravindkishore is offline Offline
Light Poster

Re: question&please answer

 
0
  #6
Jul 16th, 2007
HI Infarction,

Could you please just elaborate and give example.

thanks
Aravind
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,580
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Solved Threads: 52
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: question&please answer

 
0
  #7
Jul 16th, 2007
Originally Posted by aravindkishore View Post
Could you please just elaborate and give example.
No. Look it up yourself.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 812
Reputation: arjunsasidharan is on a distinguished road 
Solved Threads: 13
arjunsasidharan's Avatar
arjunsasidharan arjunsasidharan is offline Offline
Practically a Posting Shark

Re: question&please answer

 
0
  #8
Jul 17th, 2007
Arvind you should try using a search engine called google!!

Try this site Download that tool. Start learning from it.
There is just two ways to live your life.
One is as though nothing is a miracle.
The other is as if everything is.
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 47
Reputation: kedar_challa is an unknown quantity at this point 
Solved Threads: 1
kedar_challa's Avatar
kedar_challa kedar_challa is offline Offline
Light Poster

Re: question&please answer

 
0
  #9
Jul 25th, 2007
If your application is written in ASP.Net 2.0 , you can create a master page that will be the template for all pages inside the web site.

Or if it is asp.net 1.1, you can create a base class using the PageTemplate design pattern and all other pages will extend the base class to achive common look and feel, etc.....
Thanks,

KedarNath Challa
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC