Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what is different to set title in directive or in head with <title> tag ?

<%@ Page Title="---" Language="C#"


XML
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>---</title>
</asp:Content>
Posted

1 solution

Is exactly the same thing. But, it doesn't work in your second example, because title must be on Page directive or Head tag.

Regards
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Aug-12 16:12pm    
5ed,
--SA
Christian Amado 14-Aug-12 16:13pm    
Thanks, Bro.
Christ_88 16-Aug-12 15:06pm    
thanks for the answer but why the second doesn't work ? i asked the question bec of that
Christian Amado 16-Aug-12 16:47pm    
Because you can't put a title in the content. Just for that. You can put on MasterPage or each page.
Christ_88 16-Aug-12 16:52pm    
but you have a content which has head id , and thats for this kind of things

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900