| |
Quick note about using Master Pages with ASP.net
Written by
Daniel Longieliere on July 5
Provided by Logic Unlimited
Just wanted to write a quick note so that people looking to use master pages in asp.net will hopefully not have to rewrite a ton of code.
Master pages are an extremely powerful version of the old server side includes from asp. Problem is, they are a bit more constrictive.
As you may know, you design a template, and then reuse it only posting the content in your content file. You have very little access to the actual master page for good reason.
One thing you should consider is extending your base class before you begin adding content so that you can save your important meta tags in the @page directive on each content page.
The ones that I was particularly concerned about were the meta tags for title, keywords, and description. These are important tags if you are trying to optimize for search engines. While some search engines do not use these as much as others (google pays little attention to keywords anymore) its still very necessary to have them.
Later on, I will post a walkthrough on extending your base class, and using it to change your meta tags on each page without a whole bunch of uneeded coding.
Did this help? If not,
click here and contact us for further
assistance.
|
|
|
 |
RECENT ARTICLES |
 |
|
| |
|
|
|
|
|