iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-21-2007, 04:28 AM
WebProWorld New Member
 
Join Date: Sep 2007
Posts: 2
aashishsahrawat RepRank 0
Post how to add meta tag in asp2.0 net

The following code shows how to add meta tags to a page programmatically.
private void CreateMetaTags()
{

HtmlMeta hm = new HtmlMeta();

HtmlHead head = (HtmlHead)Page.Header;

hm.Name = "Keywords";
hm.Content = "C#, Csharp, C-sharp, .NET";
head.Controls.Add(hm);
}
Similarly, it helps you in adding multiple tag.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DC meta tags why repeated meta tags Steven1976a Search Engine Optimization Forum 1 03-19-2006 03:05 PM
Description Meta tag mickywall Search Engine Optimization Forum 6 02-10-2005 04:23 PM
Odd META Tag: <meta name="WT.cg_n" 28overpar Search Engine Optimization Forum 3 01-28-2005 11:42 AM
Meta Tag not showing up ? kxm Search Engine Optimization Forum 1 11-25-2004 09:05 PM
Meta Tag?? Linda522 Google Discussion Forum 6 07-06-2004 06:51 PM


All times are GMT -4. The time now is 10:47 AM.



Search Engine Optimization by vBSEO 3.3.0