is ASP.NET SEO friendly?

A

Anton

Hey

asp.net 3.5

I wonder if asp.net is seo friendly. I did a crawl test on my site and it
reported several things I didn't like:

* It reported that the title had several spaces in the begining, despite I
used the Title="title here" tag (no space in the beginning there)
but the generated code it had several spaces...

* because of the spaces in the title, it reported that my keywords wasn't in
the title, but the keywords are indeed there :(

*my keywords isn't in the top of the body section, because there asp.net had
placed some hidden fields. Wonder if that affects the sites's ranking

any suggestions?
 
S

Scott M.

Anton said:
Hey

asp.net 3.5

I wonder if asp.net is seo friendly. I did a crawl test on my site and it
reported several things I didn't like:

* It reported that the title had several spaces in the begining, despite I
used the Title="title here" tag (no space in the beginning there)
but the generated code it had several spaces...

* because of the spaces in the title, it reported that my keywords wasn't
in the title, but the keywords are indeed there :(

*my keywords isn't in the top of the body section, because there asp.net
had placed some hidden fields. Wonder if that affects the sites's ranking

any suggestions?

I don't experience those issues with my ASP .NET site or any other ASP .NET
site I've built. Page titles and keywords are manually added as static HTML
and do not get altered that way.

-Scott
 
R

Registered User

Hey

asp.net 3.5

I wonder if asp.net is seo friendly. I did a crawl test on my site and it
reported several things I didn't like:
ASP.NET can be used to create SEO friendly sites. URL rewriting is
especially useful.
* It reported that the title had several spaces in the begining, despite I
used the Title="title here" tag (no space in the beginning there)
but the generated code it had several spaces...
What tool was used?
* because of the spaces in the title, it reported that my keywords wasn't in
the title, but the keywords are indeed there :(

*my keywords isn't in the top of the body section, because there asp.net had
placed some hidden fields. Wonder if that affects the sites's ranking
Probably not as this is not an uncommon occurrence.
any suggestions?
Learn more about search engines, how they work, and the factors that
may influence search rankings. I would recommend 'Professional Search
Engine Optimization with ASP.NET" (ISBN 978-0-470-13147-3) or
something similar as a starting point.

regards
A.G.
 
G

Guest

Hey

asp.net 3.5

I wonder if asp.net is seo friendly. I did a crawl test on my site and it
reported several things I didn't like:

* It reported that the title had several spaces in the begining, despite I
used the Title="title here" tag (no space in the beginning there)
but the generated code it had several spaces...

By default, .NET generates an output in XHTML (see your DOCTYPE tag at
the very top). According to XHTML rules, leading and trailing white
space, including line breaks, are not an error for layout. This is
more important for the browser, but search engines also should follow
that rule. To be sure that your site has no problems with ASP.NET and
SEO you can start with Google Webmaster Tools at https://www.google.com/webmasters
where you can see some useful information about how Google see you
site.
 
S

Scott M.

Hey

asp.net 3.5

I wonder if asp.net is seo friendly. I did a crawl test on my site and it
reported several things I didn't like:

* It reported that the title had several spaces in the begining, despite I
used the Title="title here" tag (no space in the beginning there)
but the generated code it had several spaces...
By default, .NET generates an output in XHTML (see your DOCTYPE tag at
the very top). According to XHTML rules, leading and trailing white
space, including line breaks, are not an error for layout. This is
more important for the browser, but search engines also should follow
that rule. To be sure that your site has no problems with ASP.NET and
SEO you can start with Google Webmaster Tools at
https://www.google.com/webmasters
where you can see some useful information about how Google see you
site.

But, this doesn't address ASP .NET at all. ASP .NET does not generate
leading and trailing spaces for page titles and such by default. If you are
getting leading and trailing spaces, you are most likely settinng your page
titles dynamially, in which case your code is probably more to blame than
ASP .NET.

-Scott
 
G

Guest

But, this doesn't address ASP .NET at all.  ASP .NET does not generate
leading and trailing spaces for page titles and such by default.  If you are
getting leading and trailing spaces, you are most likely settinng your page
titles dynamially, in which case your code is probably more to blame than
ASP .NET.

-Scott- Hide quoted text -

- Show quoted text -

It is generated by ASP.NET. Look at the header of www.asp.net for
instance.
 
G

germ

Alexey is correct- asp.net by default DOES add line feeds before & after
<title /> contents


But, this doesn't address ASP .NET at all. ASP .NET does not generate
leading and trailing spaces for page titles and such by default. If you
are
getting leading and trailing spaces, you are most likely settinng your
page
titles dynamially, in which case your code is probably more to blame than
ASP .NET.

-Scott- Hide quoted text -

- Show quoted text -

It is generated by ASP.NET. Look at the header of www.asp.net for
instance.
 
S

Scott M.

germ said:
Alexey is correct- asp.net by default DOES add line feeds before & after
<title /> contents




It is generated by ASP.NET. Look at the header of www.asp.net for
instance.

Yes, I see (and know) what you mean by the spacing, however (again) this may
be more of a problem with the coding of dynamically generated titles, rather
than with ASP .NET itself.

This is what I get when I create a new ASP .NET page:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb"
Inherits="WebApplication1._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>

-Scott
 
A

Anton

This is what I get when I create a new ASP .NET page:
<%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>

-Scott

The pages in my project are based on a masterpage, so I specify the title in
first line in the page
:<%@ Page Language="C#" MasterPageFile="~/Masters/MasterPage.master"
AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
Title="First Page" %>

Which generates:
<title>
First Page
</title>
(the line break after <title> and the spaces before the "First Page" text)

Also I want to add that I've run a test using Google Webmaster Tools, and it
report that they have no problem with the titles in my project.
http://www.instantposition.com/seotest.php reported that my site is poorly
optimized, I ran a test on the asp.net site also and it too was poorly
optimized too
(it said that the www.asp.net was missing the keyword asp.net in the
title...) Not sure how serious I can take the result from the test as I
suppose they who created asp.net is among the best developers microsoft know
about...

Look forward to reading that book :)
 
G

Guest

The pages in my project are based on a masterpage, so I specify the title in
first line in the page
:<%@ Page Language="C#" MasterPageFile="~/Masters/MasterPage.master"
AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
Title="First Page" %>

Which generates:
<title>
       First Page
</title>
(the line break after <title> and the spaces before the "First Page" text)

Also I want to add that I've run a test using Google Webmaster Tools, and it
report that they have no problem with the titles in my project.http://www..instantposition.com/seotest.phpreported that my site is poorly

I would not trust to this service, because it does not work
properly...

Compare result for keywords with any other tool. For example, I tested
it with
http://www.submitexpress.com/analyzer/

Do you see the difference?
 
G

Guest

Yes, I see (and know) what you mean by the spacing, however (again) this may
be more of a problem with the coding of dynamically generated titles, rather
than with ASP .NET itself.

This is what I get when I create a new ASP .NET page:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb"
Inherits="WebApplication1._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    </div>
    </form>
</body>
</html>

-Scott- Hide quoted text -

- Show quoted text -

Scott, I don't get you point. Dynamic title is generated by ASP.NET,
isn't it?
 
S

Scott M.

Anton said:
The pages in my project are based on a masterpage, so I specify the title
in first line in the page
:<%@ Page Language="C#" MasterPageFile="~/Masters/MasterPage.master"
AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
Title="First Page" %>

Which generates:
<title>
First Page
</title>
(the line break after <title> and the spaces before the "First Page" text)

Also I want to add that I've run a test using Google Webmaster Tools, and
it report that they have no problem with the titles in my project.
http://www.instantposition.com/seotest.php reported that my site is poorly
optimized, I ran a test on the asp.net site also and it too was poorly
optimized too
(it said that the www.asp.net was missing the keyword asp.net in the
title...) Not sure how serious I can take the result from the test as I
suppose they who created asp.net is among the best developers microsoft
know about...

Look forward to reading that book :)

Rather than setting your title as a page directive, have you tried doing it
via the title property of the page in code? Also, you can control how HTML
tags are rendered in Tools...Options of VS.

-Scott
 
S

Scott M.

Scott, I don't get you point. Dynamic title is generated by ASP.NET, isn't
it?

Well, sure. If it's dynamic then it's automatically generated. That's
actually what I've been saying all along here. That the way the title is
being generated is more likely the problem. Rather than setting the title
Page Directive, on a master page, I'd try setting it via code.

-Scott
 
G

germ

Sure that is what you get when you create a new .aspx page.
What does the browser receive when you browse it exactly as is without using
any dynamic titles ?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>

</title></head>

Line feeds before & after <title /> contents even when the contents are
empty.
I don't see how you can say this isn't an asp.net issue when this is default
the behaviour that you can't work around - unless you are suggesting title
rendering is somehow not part of asp.net ?

Gerry
 
G

germ

this problem occurs regardless of how the title is set - it happens even
when the title is never set.
and in all cases the title is generated ( rendered ) by asp.net
 
G

germ

have you found any formatting setting that work with this ?
I looked and it seems that you can affect the formatting in the designer but
not for what is actually renedered to the browser.
Maybe I am missing a setting?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,117
Latest member
Matilda564
Top