473,763 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1363
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)page service .GetPageByID(ur imngr.PageID);
if (hdt.Rows.Count == 0) return;

foreach (Control ctrl in this.Master.Con trols)
{
if (ctrl is HtmlHead)
{
HtmlTitle title = new HtmlTitle();
title.Text = Convert.ToStrin g(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}\">",
ConfigurationMa nager.AppSettin gs.Get("BaseURL "));
HtmlMeta desc = new HtmlMeta();
desc.Name = "Descriptio n";
desc.Content = Convert.ToStrin g(hdt.Rows[0]["Descriptio n"]);

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

Literal additional = new Literal();
additional.Text =
Convert.ToStrin g(hdt.Rows[0]["AdditinalHeadT ags"]);

HtmlHead head = (HtmlHead)ctrl;
head.Controls.R emoveAt(0);
head.Controls.A ddAt(0, title);
head.Controls.A ddAt(1, desc);
head.Controls.A ddAt(2, keyword);
head.Controls.A ddAt(3, additional);
head.Controls.A ddAt(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.dkwr ote in message
news:ee******** ********@TK2MSF TNGP04.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******@Priva te.4meskrev i en meddelelse
news:%2******** ********@TK2MSF TNGP02.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)page service
.GetPageByID(ur imngr.PageID);
if (hdt.Rows.Count == 0) return;

foreach (Control ctrl in this.Master.Con trols)
{
if (ctrl is HtmlHead)
{
HtmlTitle title = new HtmlTitle();
title.Text = Convert.ToStrin g(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}\">",
ConfigurationMa nager.AppSettin gs.Get("BaseURL "));
HtmlMeta desc = new HtmlMeta();
desc.Name = "Descriptio n";
desc.Content =
Convert.ToStrin g(hdt.Rows[0]["Descriptio n"]);

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

Literal additional = new Literal();
additional.Text =
Convert.ToStrin g(hdt.Rows[0]["AdditinalHeadT ags"]);

HtmlHead head = (HtmlHead)ctrl;
head.Controls.R emoveAt(0);
head.Controls.A ddAt(0, title);
head.Controls.A ddAt(1, desc);
head.Controls.A ddAt(2, keyword);
head.Controls.A ddAt(3, additional);
head.Controls.A ddAt(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.dkwr ote in message
news:ee******** ********@TK2MSF TNGP04.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.Con trols)
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.dkwr ote in message
news:%2******** ********@TK2MSF TNGP03.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
2613
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 want to search within my mysql database. But using: - several columns (title, description) - several tables (the product table is linked with another table which
0
4155
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 developed with PHP, you are not supposed to doubt that. As a proof that PHP pages could be crawled and indexed, refer this Google search
5
3000
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 (a wicked phrase). Some but not all of the words of that phrase exist in my website. I reported it and they removed the link but did not give explanations.
8
2059
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 the page should be indexed and seen by robots and which elements are simply page furniture and it is safe to ignore or not cache (e.g. adverts).
67
6049
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 makers in the world. He gets (sic) close to $5000 per custom made flyrod. A surprising number of people buy these fishing rods and never use them....they buy them as art-like investments. He is, after all, the best there is. But if you search on...
5
2067
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 them to be indexed and built the catalog as per KB article, but I've run into an interesting problem. When you publish a website from Whidbey, it precompiles everything and strips out the searchable details of the page (metadata, html, etc)...
64
6422
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 user sees is content in only one language at a time. He or she can then switch to another language and set this as the preferred language, but again he or she sees content in only this one other language. The question now is: How do I get search...
4
2182
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 site) and I want to help my client get the best search engine listing. Because this is my first for-profit site, I'm not sure what I need to do for optimal search engine placement. I've been poking around the Web, and I think I have a good start,...
8
2138
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 - $3000 setup fee and then $150 monthly to get your website search optimized ? I used the domaintools.com and it seems like my website had higher SEO rating and tag relevance than the example site he was showing me. I did not pay attention to search...
0
9563
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10145
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9998
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.