473,789 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
WebProjectsItem s folder:

VB:
D:\Program Files\Microsoft Visual Studio .NET
2003\Vb7\VBProj ectItems\WebPro jectItems

C#
D:\Program Files\Microsoft Visual Studio .NET
2003\VC#\CSharp ProjectItems\We bProjectItems

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 1047
"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********@N O-SPAM.kingswoodw eb.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
5747
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. -- Panchi51<et>pacbell.net LP64 Gotcha List ----------------
1
1352
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 programming in C# for a while but have only done some very basic ASP.NET projects. The main hurdle I'm having trouble with is finding a good method of laying out pages, I guess templates.
5
1305
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 stains from pretty much anything. Problem is, as of yet, you couldn't find out how to clean anything right now cause the site is new and no one has found it yet. We don't know enough about cleaning and tips and tricks to really fill the site. Were...
0
1639
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
1746
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
18017
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 USB flash drive issues. Post your favorite tips and tricks here, in this thread, and I'll copy the best ones to a Tips and Tricks article (to be created soon). I'll kick things off:
2
2785
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 article (to be created soon). Thanks. And have fun!
2
22780
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 in the attribute of an element. Instead of using the <xsl:attribute> element, you can simply place the xpath in the attribute itself. The most common usage of this is in creating hyperlinks.
8
6020
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 and Tricks" thread. Post your solutions and tricks that you think will help someone down the road here. If the tip is complex or long, you might want to consider making an article out of it and posting it in the Insights forum. Looking...
0
9506
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10403
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10193
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6755
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5414
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5546
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4087
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2904
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.