Page setup order

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

Does it matter whether Doctype is after the Page line? At the moment, I
have my pages as so:

<%@ Page Language="VB" trace="false" debug="true" AutoEventWireup="true"
ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Register TagPrefix="fts" TAgName="header"
src="..\includes\defaultHeaders.ascx" %>
<%@ Register TagPrefix="fts" TAgName="footer"
src="..\includes\defaultFooters.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">

I wanted to find out if this is the correct order or does it matter?

Tom
 
the page directives are read by asp.net and are not included in the output
html. the <doctype statement is html and only used by the browser

-- bruce (sqlwork.com)


(e-mail address removed)...
| Does it matter whether Doctype is after the Page line? At the moment, I
| have my pages as so:
|
| <%@ Page Language="VB" trace="false" debug="true" AutoEventWireup="true"
| ContentType="text/html" ResponseEncoding="iso-8859-1" %>
| <%@ Register TagPrefix="fts" TAgName="header"
| src="..\includes\defaultHeaders.ascx" %>
| <%@ Register TagPrefix="fts" TAgName="footer"
| src="..\includes\defaultFooters.ascx" %>
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
|
| I wanted to find out if this is the correct order or does it matter?
|
| Tom
|
|
 
bruce barker said:
the page directives are read by asp.net and are not included in the output
html. the <doctype statement is html and only used by the browser

So it doesn't matter what order they are in?

Tom
 
So it doesn't matter what order they are in?

Tom

No. Order shouldn't matter. I use a similar scheme.

By convention, I place the page directive at the top, and include
controls below.

VS.NET moves the control declarations before the page directive.

-- ipgrunt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top