473,326 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Page setup order

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
Nov 19 '05 #1
3 1261
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)
23***************@TK2MSFTNGP14.phx.gbl...
| 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
|
|
Nov 19 '05 #2
"bruce barker" <no***********@safeco.com> wrote in message
news:e0**************@TK2MSFTNGP14.phx.gbl...
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
-- bruce (sqlwork.com)
23***************@TK2MSFTNGP14.phx.gbl...
| 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
|
|

Nov 19 '05 #3
On 01 Mar 2005, "tshad" <ts**********@ftsolutions.com> postulated in
news:uS**************@TK2MSFTNGP10.phx.gbl:
"bruce barker" <no***********@safeco.com> wrote in message
news:e0**************@TK2MSFTNGP14.phx.gbl...
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

-- bruce (sqlwork.com)
23***************@TK2MSFTNGP14.phx.gbl...
| 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
|
|



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
Nov 19 '05 #4

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

Similar topics

7
by: WindAndWaves | last post by:
Hi Gurus I am keen to make a search page on a website, but I have absolutely zero experience with PHP. I am going to hire an expert, but I thought that it may pay to try it a bit first myself...
4
by: Jacob | last post by:
I have a page Add_data.asp which accepts a number of user-entered variables and then inserts them into a database. I have another page, Loc_tree.asp which when accessed, returns a tree of...
11
by: David Given | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Say I have a piece of Javascript that transforms the HTML on a page. (In order to work around CSS bugs.) I could invoke this from the BODY onload...
3
by: happy | last post by:
/* Book name : The prodessional programmers guide to C File name : E:\programs\tc\iti01\ch09\main\01setupm.c Program discription: file setuping -up -Version 01-ver01-W Logic ...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
7
by: Michael Galvin | last post by:
I am trying to use Python to send to the printer a calender filled with a mix of text and simple graphics. I want to draw on the printed page something like a table with 6 rows and 7 columns to...
3
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table...
3
by: Nathan Sokalski | last post by:
I am recieving the following error on the second postback of a page I have written: The state information is invalid for this page and might be corrupted Stack Trace: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.