| 5:38 pm on Apr 20, 2011 (gmt 0)|
|First person to answer get a virtual high five |
I'd take one of those right now.
I can't answer your question though.
High five me anyway.
| 5:45 pm on Apr 20, 2011 (gmt 0)|
OK, here's a HIGH FIVE to you.
Maybe I should have said first person with a working solution gets the virtual high five! ha ha
| 9:34 pm on Apr 20, 2011 (gmt 0)|
Here's an oldie but a goodie:
| 7:26 am on Apr 21, 2011 (gmt 0)|
I assume you're getting the values in Page_Load for this example:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' Get values from DB
Page.Title = strPagetitle
| 3:27 pm on Apr 21, 2011 (gmt 0)|
Awesome. It works.. Any idea how I could do this for meta descriptions or key phrases also?
| 6:51 pm on Apr 21, 2011 (gmt 0)|
are you using .NET 4.0? then it is as easy as this:
|Page.MetaKeywords = "These, are my, meta, keywords" |
Page.MetaDescription = "This is my meta description."
| 7:01 pm on Apr 25, 2011 (gmt 0)|
Unfortunately not. They are not working. What else can you suggest? HAL
| 9:21 am on Apr 26, 2011 (gmt 0)|
I haven't tested this, but you should get the general idea:
(Add the runat="server" attribute to your the head tag)
Dim hd As HtmlHead = CType(Page.Master.FindControl("Head"), HtmlHead)
Dim mt As New HtmlMeta
mt.Attributes.Add("content", "Place your description here")
mt = New HtmlMeta
mt.Attributes.Add("content", "place, your, keywords, here")
| 7:46 pm on Jun 9, 2011 (gmt 0)|
Sorry for not getting back in a while. I had to put this project on hold, but I am back now. We have ASP.NET version 2.0.50727.4211
Is there any harm in upgrading to 4.0?
| 12:22 am on Jun 12, 2011 (gmt 0)|
Shouldn't be that much of a problem from what I am reading.
| 8:12 pm on Jun 13, 2011 (gmt 0)|
Thanks. I will look at doing this shortly.