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 3 of 3

Thread: Change the name of default.aspx

  1. #1
    smoreo is offline Member
    Join Date
    Nov 2009
    Location
    Brooklyn, NY
    Posts
    36

    Question Change the name of default.aspx

    I need to make that page a little less common, is there ea way to change in the app parameters so all referrals go to the new page?

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    First off, you'll have to rename the physical default.aspx and default.aspx.cs to something else, say "newDefault.aspx and newDefault.aspx.cs". Then, open those files and change it with the ff:

    from newDefault.aspx:
    Code:
    <%@ Page Language="c#" Inherits="AspDotNetStorefront._newDefault" CodeFile="newDefault.aspx.cs" %>
    from newDefault.aspx.cs:
    Code:
    public partial class _newDefault : SkinBase
    Second, you'll have to do a global search from Visual Studio to change every default.aspx in AspDotNetStorefront solution.

    In your InetMgr (IIS), select the website, right click to select "properties", navigate to "Documents" tab, and add "newDefault.aspx" on top of the other existing documents.

    I haven't actually try this, so let us know if this works.

    *Make sure to have a full backup of it first before making these changes.

  3. #3
    smoreo is offline Member
    Join Date
    Nov 2009
    Location
    Brooklyn, NY
    Posts
    36

    Thumbs up Thanks

    Its more of a customization then a change, so i ill have to try to break this pretty hard in dev. Will let you know how it goes.