The following warnings occurred:
Warning [2] Cannot modify header information - headers already sent by (output started at D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\scripts.php:2) - Line: 1701 - File: D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\functions.php PHP 5.2.17 (WINNT)
File Line Function
[PHP]   errorHandler->error
D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\functions.php 1701 header
D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\functions.php 1763 my_setcookie
D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\functions_indicators.php 42 my_set_array_cookie
D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\showthread.php 578 mark_thread_read
Warning [2] Cannot modify header information - headers already sent by (output started at D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\scripts.php:2) - Line: 1701 - File: D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\functions.php PHP 5.2.17 (WINNT)
File Line Function
[PHP]   errorHandler->error
D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\functions.php 1701 header
D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\functions.php 1763 my_setcookie
D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\functions_indicators.php 218 my_set_array_cookie
D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\inc\functions_indicators.php 48 mark_forum_read
D:\inetpub\vhosts\visionwebdirectory.com\httpdocs\forum\showthread.php 578 mark_thread_read





Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code sample to add meta tags by C# code
06-30-2013, 06:25 PM
Post: #1
Code sample to add meta tags by C# code
private void BindHeader()

{

HtmlMeta metaTagKeyword = new HtmlMeta();

metaTagKeyword.Name = "keywords";

metaTagKeyword.Content = "river view property,lake front property,lakefront property,river view property,riverview property,timber,large acreages,recreational property,recreational property for sale,bc recreational property,bc real estate,british columbia real estate,investment property,rural property,recreational land, bc recreational real estate";

this.Header.Controls.Add(metaTagKeyword);

HtmlMeta metaTagDescription = new HtmlMeta();

metaTagDescription.Name = "descriptionName";

metaTagDescription.Content = "sale between $50,000 and $500,000. These recreational property listings can be found throughout BC. Some great deals!";

this.Header.Controls.Add(metaTagDescription);

HtmlMeta metaTagTitle = new HtmlMeta();

metaTagTitle.Name = "Title Here";

metaTagTitle.Content = "Properties between $50,000 to $500,000 for sale";

this.Header.Controls.Add(metaTagTitle);

}
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)