473,385 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Search engine optimisation of asp.net.20 pages.


Hello,

Does anyone know anything about how to optimise asp.net 2.0 pages for search
engines?
I'm thinking of a programmatic way of mapping sitemap structure to pages
meta tags. Well
it can always be done i'm just wondering of smart ways of doing it.

Thanks
JJ

WebMaster www.meelovia.com
Powered by ASP.Net 2.0
Aug 15 '06 #1
5 1347
You need more than few meta tags to optmize you page to search engine..
anyway i do it that way..
make you html <head runat="server">

now you can add meta tage programatic..

BEService.Page pageservice = new BEService.Page();
DataTable hdt = (DataTable)pageservice .GetPageByID(urimngr.PageID);
if (hdt.Rows.Count == 0) return;

foreach (Control ctrl in this.Master.Controls)
{
if (ctrl is HtmlHead)
{
HtmlTitle title = new HtmlTitle();
title.Text = Convert.ToString(hdt.Rows[0]["Title"]);

// Any Script or tag you want add dynamicly.. for me i add
base url
Literal baseurl = new Literal();
baseurl.Text = string.Format("<base href=\"{0}\">",
ConfigurationManager.AppSettings.Get("BaseURL"));
HtmlMeta desc = new HtmlMeta();
desc.Name = "Description";
desc.Content = Convert.ToString(hdt.Rows[0]["Description"]);

HtmlMeta keyword = new HtmlMeta();
keyword.Name = "Keyword";
keyword.Content = Convert.ToString(hdt.Rows[0]["Keyword"]);

Literal additional = new Literal();
additional.Text =
Convert.ToString(hdt.Rows[0]["AdditinalHeadTags"]);

HtmlHead head = (HtmlHead)ctrl;
head.Controls.RemoveAt(0);
head.Controls.AddAt(0, title);
head.Controls.AddAt(1, desc);
head.Controls.AddAt(2, keyword);
head.Controls.AddAt(3, additional);
head.Controls.AddAt(4,baseurl);
}

}
What do u think??
Does it meet your needs??

Note : more best search engine optmization minimize use of linkbutton events
and use Hyperlinks instead, search engine spiders can't click you buttons
but it can alwasy follow your links. Good Luck.

"Jens Jensen" <jj@jensen.dkwrote in message
news:ee****************@TK2MSFTNGP04.phx.gbl...
>
Hello,

Does anyone know anything about how to optimise asp.net 2.0 pages for
search engines?
I'm thinking of a programmatic way of mapping sitemap structure to pages
meta tags. Well
it can always be done i'm just wondering of smart ways of doing it.

Thanks
JJ

WebMaster www.meelovia.com
Powered by ASP.Net 2.0

Aug 15 '06 #2

"Islamegy®" <Is******@Private.4meskrev i en meddelelse
news:%2****************@TK2MSFTNGP02.phx.gbl...
You need more than few meta tags to optmize you page to search engine..
anyway i do it that way..
make you html <head runat="server">

now you can add meta tage programatic..

BEService.Page pageservice = new BEService.Page();
DataTable hdt = (DataTable)pageservice
.GetPageByID(urimngr.PageID);
if (hdt.Rows.Count == 0) return;

foreach (Control ctrl in this.Master.Controls)
{
if (ctrl is HtmlHead)
{
HtmlTitle title = new HtmlTitle();
title.Text = Convert.ToString(hdt.Rows[0]["Title"]);

// Any Script or tag you want add dynamicly.. for me i add
base url
Literal baseurl = new Literal();
baseurl.Text = string.Format("<base href=\"{0}\">",
ConfigurationManager.AppSettings.Get("BaseURL"));
HtmlMeta desc = new HtmlMeta();
desc.Name = "Description";
desc.Content =
Convert.ToString(hdt.Rows[0]["Description"]);

HtmlMeta keyword = new HtmlMeta();
keyword.Name = "Keyword";
keyword.Content = Convert.ToString(hdt.Rows[0]["Keyword"]);

Literal additional = new Literal();
additional.Text =
Convert.ToString(hdt.Rows[0]["AdditinalHeadTags"]);

HtmlHead head = (HtmlHead)ctrl;
head.Controls.RemoveAt(0);
head.Controls.AddAt(0, title);
head.Controls.AddAt(1, desc);
head.Controls.AddAt(2, keyword);
head.Controls.AddAt(3, additional);
head.Controls.AddAt(4,baseurl);
}

}
What do u think??
Does it meet your needs??

Note : more best search engine optmization minimize use of linkbutton
events and use Hyperlinks instead, search engine spiders can't click you
buttons but it can alwasy follow your links. Good Luck.

"Jens Jensen" <jj@jensen.dkwrote in message
news:ee****************@TK2MSFTNGP04.phx.gbl...
>>
Hello,

Does anyone know anything about how to optimise asp.net 2.0 pages for
search engines?
It looks very good.

I will give it is try.
I guess the new asp.net 2.0 menu is useless with respect to SEO.

Many thanks
JJ

WebMaster www.meelovia.com
Powered by ASP.Net 2.0
Aug 15 '06 #3
The problem here ,is i use master pages.... Gets a bit more complicated.

and What is BEService???

Aug 15 '06 #4
Not complicated.. look at the code, I use masterpage too.. look at the
foreach loop :
foreach (Control ctrl in this.Master.Controls)
i loop in the masterpage controls, and you have to change the <headtag in
masterpage..

BEService... is a webservice, i use webservice as a data access layer.
"Jens Jensen" <jj@jensen.dkwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
The problem here ,is i use master pages.... Gets a bit more complicated.

and What is BEService???

Aug 15 '06 #5
Ok!
Very cool...
Aug 15 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Rod | last post by:
Hi, i am doing a ecommerce website and would like to implement a search engine to find products. All the serach engine I have found on the web are parsing html page! This is not what i want. i...
0
by: R. Rajesh Jeba Anbiah | last post by:
Q: Is PHP search engine friendly? Q: Will search engine spiders crawl my PHP pages? A: Spiders should crawl anything provided they're accessible. Since, nowadays most of the websites are been...
5
by: George | last post by:
Hi, Anyone has the background for explaining? I have made a search on my name and I have got a link to another search engine. The link's title was the search phrase for the other search engine...
8
by: Craig Cockburn | last post by:
Hi I'm aware of the use of robots.txt and the use of <META NAME="ROBOTS" CONTENT="index,follow"> However, what would be more useful is to be able to control within a page which elements of...
67
by: Sandy.Pittendrigh | last post by:
Here's a question I don't know the answer to: I have a friend who makes very expensive, hand-made bamboo flyrods. He's widely recognized (in the fishing industry) as one of the 3-5 'best' rod...
5
by: Sam | last post by:
Does anyone know of a way to create a search page under ASP.NET 2.0? I have started out by configuring a catalog in Index Server, registering the aspx, ascx extensions in the registry to allow...
64
by: Manfred Kooistra | last post by:
I am building a website with identical content in four different languages. On a first visit, the search engine determines the language of the content by the IP address of the visitor. What the...
4
by: MDW | last post by:
Posted this on another board, but evidently it was off-topic there...hope you folks will be able to provide some guidance. I've been working on a Web site for a business (my first non-personal...
8
by: Roman | last post by:
I received a marketing call from a guy first showing me my website and then some other website and ranking of that other website. My questions is it worth paying to SEO corporation a $1200 -...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.