> This is what I get when I create a new ASP .NET page:
>
> <%@ Page Language="vb" AutoEventWireup="false"
> CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> <html xmlns="http://www.w3.org/1999/xhtml" >
> <head runat="server">
> <title></title>
> </head>
> <body>
> <form id="form1" runat="server">
> <div>
>
> </div>
> </form>
> </body>
> </html>
>
> -Scott
The pages in my project are based on a masterpage, so I specify the title in
first line in the page
:<%@ Page Language="C#" MasterPageFile="~/Masters/MasterPage.master"
AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
Title="First Page" %>
Which generates:
<title>
First Page
</title>
(the line break after <title> and the spaces before the "First Page" text)
Also I want to add that I've run a test using Google Webmaster Tools, and it
report that they have no problem with the titles in my project.
http://www.instantposition.com/seotest.php reported that my site is poorly
optimized, I ran a test on the asp.net site also and it too was poorly
optimized too
(it said that the
www.asp.net was missing the keyword asp.net in the
title...) Not sure how serious I can take the result from the test as I
suppose they who created asp.net is among the best developers microsoft know
about...
Look forward to reading that book