473,511 Members | 16,258 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Doctype

How to modify the default doctype in asp.net page?
I wish use xhtml 1.1 and not xhtml 1.0 transitional
Aug 2 '06 #1
4 1705
Salut Damien,

The templates for pages are stored in a folder such as C:\Program
Files\Microsoft Visual Studio
8\Common7\IDE\VWDExpress\ItemTemplates\Web\VisualB asic\1033 inside a .zip
file.

I've haven't tried it, but it looks like you could make a backup of the
original zip, extract webform.aspx from the zip, substitute the doctype you
want, and zip it up again.

There seem to be a couple of similar folders (one for cached templates) so
you might have to use trial and error to get the right one.

Or, you mgiht want to create your own custom Visual Studio templates with
the correct doctype. There's a procedure to do that here:

http://msdn2.microsoft.com/en-us/library/ms247065.aspx

Let us know how you make out?

Ken
Microsoft MVP [ASP.NET]

"Damien RICHARD" <da************@no-spam.opacvosges.frwrote in message
news:Oz**************@TK2MSFTNGP05.phx.gbl...
How to modify the default doctype in asp.net page?
I wish use xhtml 1.1 and not xhtml 1.0 transitional


Aug 2 '06 #2
Hello,

You must modify webform.aspx and webform_cb.aspx in the webform.zip stored
in the C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\VWDExpress\ItemTemplates\Web\VisualB asic\1033 and C:\Program
Files\Microsoft Visual Studio
8\Common7\IDE\VWDExpress\ItemTemplatesCaches\Web\V isualBasic\1033\Webform.zip
directories.

"Ken Cox [Microsoft MVP]" <BA**********@newsgroups.nospama écrit dans le
message de news: uk**************@TK2MSFTNGP03.phx.gbl...
Salut Damien,

The templates for pages are stored in a folder such as C:\Program
Files\Microsoft Visual Studio
8\Common7\IDE\VWDExpress\ItemTemplates\Web\VisualB asic\1033 inside a .zip
file.

I've haven't tried it, but it looks like you could make a backup of the
original zip, extract webform.aspx from the zip, substitute the doctype
you want, and zip it up again.

There seem to be a couple of similar folders (one for cached templates) so
you might have to use trial and error to get the right one.

Or, you mgiht want to create your own custom Visual Studio templates with
the correct doctype. There's a procedure to do that here:

http://msdn2.microsoft.com/en-us/library/ms247065.aspx

Let us know how you make out?

Ken
Microsoft MVP [ASP.NET]

"Damien RICHARD" <da************@no-spam.opacvosges.frwrote in message
news:Oz**************@TK2MSFTNGP05.phx.gbl...
>How to modify the default doctype in asp.net page?
I wish use xhtml 1.1 and not xhtml 1.0 transitional



Aug 3 '06 #3
With Visual Studio 2005 Web Application Projects, the directories are
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp
and C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\ItemTemplatesCache\CSharp\WebForm.zi p

"Ken Cox [Microsoft MVP]" <BA**********@newsgroups.nospama écrit dans le
message de news: uk**************@TK2MSFTNGP03.phx.gbl...
Salut Damien,

The templates for pages are stored in a folder such as C:\Program
Files\Microsoft Visual Studio
8\Common7\IDE\VWDExpress\ItemTemplates\Web\VisualB asic\1033 inside a .zip
file.

I've haven't tried it, but it looks like you could make a backup of the
original zip, extract webform.aspx from the zip, substitute the doctype
you want, and zip it up again.

There seem to be a couple of similar folders (one for cached templates) so
you might have to use trial and error to get the right one.

Or, you mgiht want to create your own custom Visual Studio templates with
the correct doctype. There's a procedure to do that here:

http://msdn2.microsoft.com/en-us/library/ms247065.aspx

Let us know how you make out?

Ken
Microsoft MVP [ASP.NET]

"Damien RICHARD" <da************@no-spam.opacvosges.frwrote in message
news:Oz**************@TK2MSFTNGP05.phx.gbl...
>How to modify the default doctype in asp.net page?
I wish use xhtml 1.1 and not xhtml 1.0 transitional



Aug 3 '06 #4
In article <Oz**************@TK2MSFTNGP05.phx.gbl>, Damien RICHARD
<da************@no-spam.opacvosges.frwrites
>How to modify the default doctype in asp.net page?
I wish use xhtml 1.1 and not xhtml 1.0 transitional
Why? According to the specs, XHTML 1.1 must be delivered with an XML
mime type (as opposed to an HTML one), and this isn't supported in IE,
which cuts out about 80% of the Internet public. I'm not sure it's
supported in many other browsers for that matter.

--
Alan Silver
(anything added below this line is nothing to do with me)
Aug 7 '06 #5

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

Similar topics

8
4403
by: CMAR | last post by:
I create my website using Front Page 2000. I notice that none of my pages have a DocType statement at the top. I have read that if you want IE6 to use "Standards mode" rather than the "Quirks...
6
5156
by: Patrick | last post by:
Hi I am fairly new to CSS and the web.I am trying to build a site more to practice my skills than for the site itself. I have been focusing on CSS and try my best to make it work in I.E 6.0,...
2
14785
by: DartmanX | last post by:
I doubt this is possible, but I want to ask, just in case it is. I have a project going using Google Maps. This project spits out an HTML page template for people to post to their website and...
25
2692
by: Viken Karaguesian | last post by:
Hello all, I'm somewhat of a newbie to webscripting. I've made a couple of websites in the past with WYSIWYG software, but now I'm much more interested in manual scripting. I have some...
2
6583
by: PapaRandy | last post by:
Hello, I am trying to validate the following .py webpage as HTML (through W3C). I put: ----------------------------------------------------------------------------- print "Content-type:...
24
9141
by: Jim Michaels | last post by:
I can't get any "universal" code working that tries to detect whether the document it's in is xhtml or html. I found this, which tells me I have a hill to climb with no equipment....
6
7827
by: Rolf Welskes | last post by:
Hello, if I have for example: <table style="width: 100%; height: 100%;" border="1"> <tr> <td style="width: 100px">k </td> <td style="width: 100px">k </td> </tr>
0
8526
drhowarddrfine
by: drhowarddrfine | last post by:
The Doctype or DTD Many coders get confused by all the talk of doctypes and how they affect browsers and the display of their web pages. This article will get right to the point about doctypes...
11
2708
by: rfr | last post by:
When I add a transitional doctype to the weather page on my community website, I loose certain Js scripts, but not all of them. This puzzles me. The main menu is powered by a js script and...
6
7930
by: WT | last post by:
Hello, I am searching for a way to generate automatically from codebehind the <!Doctype....for asp.net pages using .net 3.5 c# and vs2008. Subidiary question: if I do a server transfert in my...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
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...
0
7353
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,...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
446
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...

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.