473,385 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Tips and Tricks: Page Templates

Here is a little trick that might help some developers.

As you may, or may not, be aware, ASP.NET 2.0 (Whidbey) gives the abilities
to add a master page. This is great news for developers. But, what if you
have an application where you have a skin (the common portion of the page)
created and need to create multiple pages from it ... and are using version
1.0/1.1? While I cannot solve updates with this technique, there is a small
trick you can do to set up pages quickly.

First, create your template. This will have any common user controls, menus,
et al. After you have the page completed, make copy and paste into the
WebProjectsItems folder:

VB:
D:\Program Files\Microsoft Visual Studio .NET
2003\Vb7\VBProjectItems\WebProjectItems

C#
D:\Program Files\Microsoft Visual Studio .NET
2003\VC#\CSharpProjectItems\WebProjectItems

You can then use your add menu to add the item by the name you gave it. If
you work from the standard web template, found at:

You can add your items and have a fully functioning page that adds a class
with the right name.

Now, you can also create full wizards, et al, if you have the time, but this
is a good quick, down and dirty way to repeat a look across a group of pages
(usually at the same directory level, although there are ways around this
too). NOTE: Once again, this is not the same as master page templates. If
you update, you will have to update every page. To reduce updates, use CSS
and user controls for common menus, etc.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
Nov 18 '05 #1
2 1034
"Cowboy (Gregory A. Beamer)" wrote ...
As you may, or may not, be aware, ASP.NET 2.0 (Whidbey) gives the abilities to add a master page.


Hi Gregory,

Please excuse my ignorance but when is ASP.Net 2.0 available for a
production server? I am going through hell at the moment trying to
understand how to create a simple template - and if your suggestion in your
post is likely to make it any easier then I might be prepared to ditch my
failing attempts at the moment and wait for an easier approach.

Any information appreciated.

Regards

Rob
Nov 18 '05 #2
AFAIK there is no published schedule for the release of ASP.Net 2/Whidbey.
In fact, when you read all the disclaimers about any software, even in the
beta stage, the publisher usually even reserves the option of never
releasing it.

Colin

"Rob Meade" <ro********@NO-SPAM.kingswoodweb.net> wrote in message
news:Vt***********************@news-text.cableinet.net...
"Cowboy (Gregory A. Beamer)" wrote ...
As you may, or may not, be aware, ASP.NET 2.0 (Whidbey) gives the abilities
to add a master page.


Hi Gregory,

Please excuse my ignorance but when is ASP.Net 2.0 available for a
production server? I am going through hell at the moment trying to
understand how to create a simple template - and if your suggestion in

your post is likely to make it any easier then I might be prepared to ditch my
failing attempts at the moment and wait for an easier approach.

Any information appreciated.

Regards

Rob

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Panchi51 | last post by:
Hi, Below is a collection of tips/tricks/caveats for LP64 c coding, full text is at http://www.cs.albany.edu/~mosh/Text/c-ref.txt. Hope it helps, corrections welkome. --...
1
by: Joe Hughes | last post by:
Hi All I'm a seasoned ASP programmer and have been writing ASP for years. I've decided now to stop writing ASP and jump onboard the ASP.NET bandwagon (albeit a bit late). I've been...
5
by: MrB398 | last post by:
Me and my buddy made a website called www.CleaningTips.com, its basically a free forum and free blog driven web site dedicated as a source people can goto to find out how to clean and remove...
0
by: travolta003 | last post by:
Windows XP tips and tricks. Learn how to bypass very common windows problems, speed up your system and make it more reliable with useful tips and tricks. http://windowsxpsp2pro.blogspot.com
0
by: travolta004 | last post by:
Windows XP tips and tricks. Learn how to bypass very common windows problems, speed up your system and make it more reliable with useful tips and tricks. http://windowsxpsp2pro.blogspot.com
68
bartonc
by: bartonc | last post by:
I've decide to compile a bunch of your favorite tips and tricks for the Articles section. I found a post yesterday by Chrisjc that is a perfect example. I copied his post over to create Dealing with...
2
bartonc
by: bartonc | last post by:
I've decide to compile a bunch of your favorite tips and tricks for the Articles section. Post your favorite tips and tricks here, in this thread, and I'll copy the best ones to a Tips and Tricks...
2
jkmyoung
by: jkmyoung | last post by:
Here's a short list of useful xslt general tricks that aren't taught at w3schools. Attribute Value Template Official W3C explanation and example This is when you want to put dynamic values...
8
Frinavale
by: Frinavale | last post by:
Edit Many times we spend hours and hours trying to solve a problem. When we finally figure it out, we want to share it to keep others from suffering the same way! That's why we have this "Tips...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.