943,525 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1634
  • ASP.NET RSS
Jul 16th, 2007
0

question&please answer

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
aravindkishore is offline Offline
29 posts
since Feb 2007
Jul 16th, 2007
0

Re: question&please answer

seperate CSS file it's much more organized hehe.. give example?

* {
background-color: #000000
}

in something.css
Reputation Points: 21
Solved Threads: 7
Junior Poster in Training
ProgrammersTalk is offline Offline
83 posts
since Jun 2007
Jul 16th, 2007
0

Re: question&please answer

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.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Jul 16th, 2007
0

Re: question&please answer

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.
Reputation Points: 10
Solved Threads: 1
Light Poster
aravindkishore is offline Offline
29 posts
since Feb 2007
Jul 16th, 2007
0

Re: question&please answer

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.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Jul 16th, 2007
0

Re: question&please answer

HI Infarction,

Could you please just elaborate and give example.

thanks
Aravind
Reputation Points: 10
Solved Threads: 1
Light Poster
aravindkishore is offline Offline
29 posts
since Feb 2007
Jul 16th, 2007
0

Re: question&please answer

Could you please just elaborate and give example.
No. Look it up yourself.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Jul 17th, 2007
0

Re: question&please answer

Arvind you should try using a search engine called google!!

Try this site Download that tool. Start learning from it.
Reputation Points: 347
Solved Threads: 13
Practically a Posting Shark
arjunsasidharan is offline Offline
812 posts
since Aug 2006
Jul 25th, 2007
0

Re: question&please answer

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.....
Reputation Points: 10
Solved Threads: 1
Light Poster
kedar_challa is offline Offline
47 posts
since Nov 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Question
Next Thread in ASP.NET Forum Timeline: Pls Help me creating a page in runtime.. pls..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC