Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > vs.net creates doctype wrong?

Reply
Thread Tools

vs.net creates doctype wrong?

 
 
Ian
Guest
Posts: n/a
 
      06-20-2004
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


 
Reply With Quote
 
 
 
 
Robert Gaut
Guest
Posts: n/a
 
      06-21-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
 
Ian
Guest
Posts: n/a
 
      06-21-2004
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" <(E-Mail Removed)> wrote in message
newsTsBc.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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Newbie - CSS Works With Invalid DOCTYPE. Fails With Valid DOCTYPE. Larry Lindstrom HTML 19 06-12-2012 02:07 PM
Button that creates a back up in Excel =?Utf-8?B?UGV0cm9zODk=?= MCSE 5 06-27-2005 11:45 PM
Re: Firewire card creates dial-up internet access conflict. Dead Meat Wireless Networking 0 09-02-2004 01:15 AM
links folder creates itself??? =?Utf-8?B?bW9ubw==?= Microsoft Certification 0 05-17-2004 12:06 PM
CGI upload creates empty file on server? Kristian Perl 1 10-21-2003 05:06 PM



Advertisments