473,513 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vs.net creates doctype wrong?

Ian
Hi there,

I have been playing around with DIV TAGS in dreamweaver and just created a
webpage in VS which I was going to edit later in Dreamweaver..

Once i attached all my divs and css etc, the css positioning wasn't working
but I fixed it

it was this line ... it needs to be this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

rather than the default that VS.net puts in which is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
How bizzare!, anyway anybody know how to force VS.net to use the correct
doctype when it creates new documents??

I do I just copy it wrong dreamweaver all the time?

Thanks in advance

Ian
Nov 18 '05 #1
2 1188
Ian,

Actually, VS.NET is using a correct doctype - 4.0 Transitional in "quirks"
mode. Unfortuantely, we'll have to wait for Whidbey (VS.NET 2005) before we
can get XHTML output from ASP.NET server controls. Currently, VS.NET is
supplying the best doctype for the markup the server controls output.

Now... If you really want to change the template for the WebForm (or create
your own custom template) so that it always has the doctype you want, check
out the templates in the installation directory for VS.NET (C:\Program
Files\Microsoft Visual Studio .NET
2003\Vb7\VBWizards\WebForm\Templates\1033). You might also hit Google and
search for "vs.net webform template"; there are several articles on how to
change and/or create templates.

I hope this helps!
Robert Gaut
"Ian" <ia*********@hotmail.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
Hi there,

I have been playing around with DIV TAGS in dreamweaver and just created a
webpage in VS which I was going to edit later in Dreamweaver..

Once i attached all my divs and css etc, the css positioning wasn't working but I fixed it

it was this line ... it needs to be this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

rather than the default that VS.net puts in which is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
How bizzare!, anyway anybody know how to force VS.net to use the correct
doctype when it creates new documents??

I do I just copy it wrong dreamweaver all the time?

Thanks in advance

Ian

Nov 18 '05 #2
Ian
Great thanks for the answer,

No probs... at the moment I can enter in manually or use your suggestion, I
just thought they might have been another way I was overlooking..

Thanks again

Ian
"Robert Gaut" <pa*******@hotmail.com> wrote in message
news:xTsBc.87249$0y.23974@attbi_s03...
Ian,

Actually, VS.NET is using a correct doctype - 4.0 Transitional in "quirks"
mode. Unfortuantely, we'll have to wait for Whidbey (VS.NET 2005) before we can get XHTML output from ASP.NET server controls. Currently, VS.NET is
supplying the best doctype for the markup the server controls output.

Now... If you really want to change the template for the WebForm (or create your own custom template) so that it always has the doctype you want, check out the templates in the installation directory for VS.NET (C:\Program
Files\Microsoft Visual Studio .NET
2003\Vb7\VBWizards\WebForm\Templates\1033). You might also hit Google and
search for "vs.net webform template"; there are several articles on how to
change and/or create templates.

I hope this helps!
Robert Gaut
"Ian" <ia*********@hotmail.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
Hi there,

I have been playing around with DIV TAGS in dreamweaver and just created a webpage in VS which I was going to edit later in Dreamweaver..

Once i attached all my divs and css etc, the css positioning wasn't

working
but I fixed it

it was this line ... it needs to be this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

rather than the default that VS.net puts in which is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
How bizzare!, anyway anybody know how to force VS.net to use the correct
doctype when it creates new documents??

I do I just copy it wrong dreamweaver all the time?

Thanks in advance

Ian


Nov 18 '05 #3

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

Similar topics

3
2827
by: bill turner | last post by:
I've searched the web and news groups. It seems others have had this problem. Unfortunately, the solution seems to be exactly what I've coded. If anybody can point out what is wrong, I'd truly...
13
4199
by: CJM | last post by:
I am building several (common) db-driven intranet sites (so I cant post URL), using a 3-frame layout; header, menu & main pages. The styling and some of the positioning is done via CSS. Up until...
12
704
by: Robert Misiorowski | last post by:
Hello, I have a very perplexing (at least to me) problem that hopefully someone can help me with. I'm making a site with a 3 column layout. In the middle column (my fluid column) I am trying to...
3
5837
by: Roland Hall | last post by:
I'm having a really tough time finding references for XML with ASP. Everything I find assumes I already have an XML file and want to display it with ASP. I'm looking for reference material where I...
4
1390
by: Bart | last post by:
I have a page with the following basic structure: body div .container div .header div #content An event on the page triggers a function in the head that sets the color and the width of...
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...
6
1672
by: jperillo | last post by:
When I validate the source of http://www.24stores.com I'm told that I have an incorrect DOCTYPE statement. How can I, or can someone determine what I'm doing wrong !! I have no idea which...
24
3744
by: TC | last post by:
Hi folks I want to enhance my website to distinguish "external" hyperlinks from "internal" ones. With that aim, I've written the following two small files for testing purposes: ...
8
2935
by: maya | last post by:
this is doctype I was told to use for a site I'm building at work.. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> only problem is, in...
0
7265
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
7171
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
7539
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
5692
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
5095
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
4751
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...
0
3240
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...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
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 ...

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.