Cannot browse to a new custom aspx page
Posted: Thu Jun 25, 2015 11:05 am
We are on Able Gold (7.09) latest release brand new installation.
We created a new theme copied fomr the Bootstrap Responsive theme per the directions and set that as the default theme. Home page displays fine with our new theme changes after getting all the Less things added.
I needed to create a new custom aspx page to capture some information into a new DB table. When i try to browse to that page to test my code, canned cant'find that page error = page not found although the file is there in the root folder of the site. I checked spelling and all that. Cleared cache etc. The page is basically mirroring
Actual response is: We are sorry, but the page you are trying to access has experienced an error.
I then tried to create a static html page in that same folder and do not get an error and displayed the test text.
i then tried to browse to one of the out of the box pages that came with able Gold Webpage.aspx directly and I get the same error page not found.
i tried adding a new page via admin and i can then browse to that page even though no physical page exists which tells me when adding via admin they are stored in a DB table somewhere. That is fine for plain pages but i need to add custom code behind code in an aspx.cs file.
Here is the aspx code stripped out to basic html and get the error: Just using standard bootstrap containers.
<%@ Page Title="" Language="C#" MasterPageFile="~/Layouts/Fixed/LeftSidebar.Master" AutoEventWireup="true" CodeBehind="ApplyForMembership.aspx.cs" Inherits="AbleCommerce.Members.ApplyForMembership" %>
<asp:Content ID="PageContent" runat="server" ContentPlaceHolderID="PageContent">
<div id="membership" class="mainContentWrapper">
<div class="section">
<div class="pageHeader">
<h1>Apply For Membership</h1>
</div>
</div>
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">Panel Heading 1</div>
<div class="panel-body">Panel Content 1</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Panel Heading 2</div>
<div class="panel-body">Panel Content 2</div>
</div>
</div>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftSidebar" runat="server">
</asp:Content>
So my question is how do we add a new physical aspx page to the site if we are adding some custom code outside of Able or adding to Able just using our own pages?
Is there any developer guide/tutorial for creating our own pages available? i only saw the api and overriding stuff on the help pages.
Thanks in advance for your guidance.
Rich
We created a new theme copied fomr the Bootstrap Responsive theme per the directions and set that as the default theme. Home page displays fine with our new theme changes after getting all the Less things added.
I needed to create a new custom aspx page to capture some information into a new DB table. When i try to browse to that page to test my code, canned cant'find that page error = page not found although the file is there in the root folder of the site. I checked spelling and all that. Cleared cache etc. The page is basically mirroring
Actual response is: We are sorry, but the page you are trying to access has experienced an error.
I then tried to create a static html page in that same folder and do not get an error and displayed the test text.
i then tried to browse to one of the out of the box pages that came with able Gold Webpage.aspx directly and I get the same error page not found.
i tried adding a new page via admin and i can then browse to that page even though no physical page exists which tells me when adding via admin they are stored in a DB table somewhere. That is fine for plain pages but i need to add custom code behind code in an aspx.cs file.
Here is the aspx code stripped out to basic html and get the error: Just using standard bootstrap containers.
<%@ Page Title="" Language="C#" MasterPageFile="~/Layouts/Fixed/LeftSidebar.Master" AutoEventWireup="true" CodeBehind="ApplyForMembership.aspx.cs" Inherits="AbleCommerce.Members.ApplyForMembership" %>
<asp:Content ID="PageContent" runat="server" ContentPlaceHolderID="PageContent">
<div id="membership" class="mainContentWrapper">
<div class="section">
<div class="pageHeader">
<h1>Apply For Membership</h1>
</div>
</div>
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">Panel Heading 1</div>
<div class="panel-body">Panel Content 1</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Panel Heading 2</div>
<div class="panel-body">Panel Content 2</div>
</div>
</div>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftSidebar" runat="server">
</asp:Content>
So my question is how do we add a new physical aspx page to the site if we are adding some custom code outside of Able or adding to Able just using our own pages?
Is there any developer guide/tutorial for creating our own pages available? i only saw the api and overriding stuff on the help pages.
Thanks in advance for your guidance.
Rich