J
Jeff
hi
asp.net 3.5
I have a webpage which if it has a querystring attached it'll display some
usefull information. But if no querystring is attached it displays this
content:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252"
http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>
I've tryed to put some logic into the page so when no querystring is used it
should give some values to a Literal control on the page. That code executes
but new value of the Literal isn't visible on the page. In addition this
page also have a masterpage, the html of the masterpage is not sent to the
browser if page have no querystring.
I was hoping to be able to add a noindex tag to the header if the page has
no querystring, so far no luck. Code is executed but the tag never appear in
the head section
HtmlHead header = this.Page.Header;
HtmlMeta keyword = new HtmlMeta();
keyword.Name = "robots";
keyword.Content = "noindex, nofollow";
header.Controls.Add(keyword);
Think this is bad for google ranking, googlebot tryes to index the page (it
crawl the page without using querystring) and find nothing, wants to improve
this
any suggestions?
asp.net 3.5
I have a webpage which if it has a querystring attached it'll display some
usefull information. But if no querystring is attached it displays this
content:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252"
http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>
I've tryed to put some logic into the page so when no querystring is used it
should give some values to a Literal control on the page. That code executes
but new value of the Literal isn't visible on the page. In addition this
page also have a masterpage, the html of the masterpage is not sent to the
browser if page have no querystring.
I was hoping to be able to add a noindex tag to the header if the page has
no querystring, so far no luck. Code is executed but the tag never appear in
the head section
HtmlHead header = this.Page.Header;
HtmlMeta keyword = new HtmlMeta();
keyword.Name = "robots";
keyword.Content = "noindex, nofollow";
header.Controls.Add(keyword);
Think this is bad for google ranking, googlebot tryes to index the page (it
crawl the page without using querystring) and find nothing, wants to improve
this
any suggestions?