Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 6 of 6

Thread: Custom ASPX Page Meta/Title Data

  1. #1
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default Custom ASPX Page Meta/Title Data

    We've created a bunch of custom .aspx pages that use the aspdnsf SkinBase class. How do we go about setting the page title and meta tags?

    If we just try and do a this.Page.Title = "Something" we get an error saying the <head> tag needs a runat="server". We try this and still it does not work.

    Anybody know the trick to this?
    Matthew Bertulli
    Demac Media
    mbertulli@demacmedia.com
    Custom Web Design & E-Commerce Development
    AspDotNetStoreFront Platinum DevNet Partner
    ----

    Custom Skinning & Design
    Web Services Integration
    Custom Reporting
    Salesforce.com eCommerce AspDotNetStoreFront Integration

  2. #2
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    Skinbase has all the SE* properties used to build the meta information. Set those in the PreRender event and you should be set. Check the ShowProduct.aspx page if you need an example

  3. #3
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default

    Thanks Dan. Massive brain-fart on this one.
    Matthew Bertulli
    Demac Media
    mbertulli@demacmedia.com
    Custom Web Design & E-Commerce Development
    AspDotNetStoreFront Platinum DevNet Partner
    ----

    Custom Skinning & Design
    Web Services Integration
    Custom Reporting
    Salesforce.com eCommerce AspDotNetStoreFront Integration

  4. #4
    Analogue is offline Member
    Join Date
    Sep 2008
    Posts
    48

    Default

    I know this one seems to have been answered here, but I just wanted to add my solution for others to see which I've been using sucessfully.

    I started to use this on our home page to hard code the page title which has previously suffered a loss of title and revert back to 'sitename' which resulted in a dramatic drop in search traffic.

    Hope you find this useful.



    I use this in the CS file page load event.

    *******

    namespace AspDotNetStorefront
    {
    public partial class contact_boardwise : SkinBase
    {
    protected void Page_Load(object sender, System.EventArgs e)
    {
    {
    SectionTitle = "Your Title";
    SETitle = "Your Page Title";
    SEDescription = "Your Description";
    }
    }
    }
    }

  5. #5
    Dalez is offline Junior Member
    Join Date
    Jul 2009
    Location
    Arizona
    Posts
    3

    Default rather use topics if possible

    This solution does work great. But I would rather give people access to the topics and appconfigs thru the admin site instead of changing the code behind file all the time. Any idea how we could do that?

  6. #6
    jgreywolf is offline Junior Member
    Join Date
    May 2010
    Posts
    14

    Default

    How about adding custom data to the DB and calling that from page behind?
    That way you could update the text from admin pages and then have code behind load whatever is in the DB

    Late and not really going in to much detail, but that is what my first instict would be

    Justin