this is how i did it
first make class that inherits from page
---------------------------------------------
using System.Text;
using System.Web.UI;
using System.IO;
namespace WebPageBase
{
public class PageBase : System.Web.UI.Page
{
protected System.Web.UI.HtmlControls.HtmlGenericControl alsideKeywords;
public string alsideKey
{
get
{
return alsideKeywords.Attributes["content"].ToString();
}
set
{
alsideKeywords.Attributes["content"] = value;
}
}
then make your meta tags "runat=server"
-------------------------------------------------
<meta name="keywords" id="alsideKeywords" content="Windows Siding"
runat="server"/>
make sure your page inherits from the new class and access like this
-------------------------------------------------------------------------------
// dr is a datareader
//sets keywords
if(dr["keywords"] != DBNull.Value)
((WebPageBase.PageBase)Page).alsideKey = dr["keywords"].ToString();
else ((WebPageBase.PageBase)Page).alsideKey = "Alside - Windows and
Siding";
HTH.......
Joe
PJ6 said:
Can't find anywhere in the docs that mentions a way to programmatically
get
a page's meta tag collection. Reflection finds nothing in attributes.
Can't
find anything in a page instance, either. Are they not accessible?
Paul