Click here to Skip to main content
12,549,762 members (43,428 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hi Expert,

I am developing Simple Seo Website Trade biz

I am using c#,

And i am working on fetching meta information using url.

There is one textbox for website url.And using that i want to display meta information(title,keywords,description).

Please help me to solve this problem.
Thanks in adv.And sorry for poor english.
Posted 20-Nov-12 19:18pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You probably need to use some third party tool. HTMLAgilityPack is one open soure tool which can be useful for the purpose.
For example to get description you can simply write a small code

HtmlDocument myDoc = new HtmlDocument();
HtmlNode descNode = doc.DocumentNode.SelectSingleNode("//meta[@name='description']");
if (descNode != null) 
    string desc = descNode.GetAttributeValue("content", "");
The link to the tool:[^]

Some examples at:[^]

Hope that helps. If it does, mark this as solution/upvote.

udusat13 21-Nov-12 6:46am
Thanks For Solution.
Milind_T 21-Nov-12 9:19am
Welcome. Glad it helped.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100