YongGang Meng's Weblog


Welcome to Weblog

October 2008 - Posts

A question about Page Header

When you add a Literal control to Page Header, for example:

<head runat="server">
    <asp:Literal runat="server" ID ="literal" >Literal Test!</asp:Literal>
     <title>Untitled Page</title>
</head>

When you browser the page, you will find "Literal Test!" was displayed.

View the source code:
<head>
    Literal Test!
     <title>
          Untitled Page
     </title>
</head>

but if you use Developer Toolbar or Doc Inspector of FF, the source code is different:
<head>
    <title>
         Untitled Page
    </title>
</head>
<body>
   Literal Test!

  ......

</body>

I don't understand, anyone can tell me which is right and why they are different? thanks!
Posted: Oct 02 2008, 04:45 PM by Ralax | with 3 comment(s)
Filed under: ,
More Posts