Monday, May 16, 2011

Create title, meta tag dynamically

1.In aspx page define like this to access it in .cs page.

<title>
        <%= PageTitle %></title>
    <%= MetaKeywords %>
    <%= MetaDescription %>2.
Define it globally to access inside

  public static string HotelNameForHeading, City, PageTitle, MetaKeywords, MetaDescription ;

PageTitle="html contatic";
MetaKeywords ="html contatic";
MetaDescription  ="html contatic";


3. And you can define it as page.title="html";

No comments:

Post a Comment