Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jason 86 posts 156 karma points
    Jul 25, 2014 @ 20:48
    Jason
    0

    Why "Page Not Found" after editing Template?

    Hello (having trouble with formatting in forum today, I apologize in advance),

    We had our site built by an outside agency several years back.

    This afternoon, I tried to edit a dropdown field in a form template that they had created.

    Once I did, I now get "Page Not Found" on both form pages that use the template.

    These are the correct links:

    ·         http://online.saintleo.edu/military-spouse-scholarship.aspx

    ·         http://online.saintleo.edu/academic-readiness-scholarship.aspx ;

     Once I changed the template, I now get:

    http://online.saintleo.edu/page-not-found.aspx?aspxerrorpath=/military-spouse-scholarship.aspx

    http://online.saintleo.edu/page-not-found.aspx?aspxerrorpath=/academic-readiness-scholarship.aspx

    I'm not sure how or why.  I reverted the very small change back to the original, and it still did not fix.  (Note: The change was very simply adding the word "Test" to a dropdown field)

    Here is the code from the template:

    <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" CodeFile="GenericFormPage.master.cs" Inherits="masterpages_GenericFormPage" AutoEventWireup="true" %>

    <asp:Content ID="Content2" ContentPlaceHolderID="PageStyles" runat="server">

    <style>

    #scenic-bg

    {

      background-color: #000;

      background-image: url(<%=UmbracoItem.Get("backgroundImage")%>);

      background-position: 50% 0;s

      background-repeat: no-repeat;

    }

    #page {padding-top: 432px;}

    </style>

    </asp:Content>

    <asp:Content ID="Content5" ContentPlaceHolderID="PageScripts" runat="server"></asp:Content>

    <asp:Content ID="Content3" ContentPlaceHolderID="TrackingCode" runat="server"></asp:Content>

    <asp:Content ID="Content4" ContentPlaceHolderID="BackgroundScene" runat="server">

    <div id="scenic-bg" class="tall <%=UmbracoItem.PageName.ToLower().Replace(" ", "-") %>"></div>

    </asp:Content>

    <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <div id="page-body" class="inner alternate">

        <div id="primary-content">

            <div class="detail">

                <form runat="server">

                    <elliance:StandardForm

                    ID="Form1"

                    WriteXml="true" 

                    XmlFilename="scholarship.xml"

                    OnSuccessfulSubmit="Form1_SuccessfulSubmit"

                    TemplateFilename="~/email-templates/generic-form-email-template.qt.txt"

                    runat="server">

                    <FormTemplate>

                    <h1><%= (!UmbracoItem.IsNullOrEmpty("alternatePageHeading") ? UmbracoItem.Get("alternatePageHeading") : UmbracoItem.PageName)%></h1>

                    <% if (!UmbracoItem.IsNullOrEmpty("introCopy")) { %>

                    <p class="intro"><umbraco:Item ID="Item1" Field="introCopy" runat="server" /></p>

                    <hr class="star" />

                    <% } %>

                    <div class="line">

                        <div class="col half">

                            <div class="inner">

                                <label for="<%=ClientID("FirstName") %>">

                                First Name*

                                <asp:RequiredFieldValidator 

                                    runat="server" 

                                    ControlToValidate="FirstName" 

                                    Display="dynamic"

                                    cssClass="error" 

                                    text="This field is required" />

                                </label>

                                <asp:TextBox ID="FirstName" cssClass="text" runat="server" />

                            </div>

                        </div>

                        <div class="col half last-col">

                            <div class="inner">

                                <label for="<%=ClientID("LastName") %>">

                                Last Name*

                                <asp:RequiredFieldValidator 

                                    runat="server" 

                                    ControlToValidate="LastName" 

                                    Display="dynamic"

                                    cssClass="error" 

                                    text="This field is required" />

                                </label>

                                <asp:TextBox ID="LastName" cssClass="text" runat="server" />

                            </div>

                        </div>

                    </div>

                    <div class="line">

                        <div class="inner">

                            <label for="<%=ClientID("StreetAddress") %>">

                            Street Address*

                            <asp:RequiredFieldValidator 

                                    runat="server" 

                                    ControlToValidate="StreetAddress" 

                                    Display="dynamic"

                                    cssClass="error" 

                                    text="This field is required" />

                            </label>

                            <asp:TextBox ID="StreetAddress" cssClass="text" runat="server" />

                        </div>

                    </div>

                    <div class="line">

                        <div class="col third">

                            <div class="inner">

                                <label for="<%=ClientID("City") %>">

                                City*

                                <asp:RequiredFieldValidator 

                                    runat="server" 

                                    ControlToValidate="City" 

                                    Display="dynamic"

                                    cssClass="error" 

                                    text="This field is required" />

                                </label>

                                <asp:TextBox ID="City" cssClass="text" runat="server" />

                            </div>

                        </div>

                        <div class="col third">

                            <div class="inner">

                                <label for="<%=ClientID("State") %>">

                                State*

                                <asp:RequiredFieldValidator 

                                    runat="server" 

                                    ControlToValidate="State" 

                                    Display="dynamic"

                                    cssClass="error" 

                                    text="This field is required" />

                                </label>

                                <asp:TextBox ID="State" cssClass="text" runat="server" />

                            </div>

                        </div>

                        <div class="col third last-col">

                            <div class="inner">

                                <label for="<%=ClientID("Zip") %>">

                                Zip*

                                <asp:RequiredFieldValidator 

                                    runat="server" 

                                    ControlToValidate="Zip" 

                                    Display="dynamic"

                                    cssClass="error" 

                                    text="This field is required" />

                                </label>

                                <asp:TextBox ID="Zip" cssClass="text" runat="server" />

                            </div>

                        </div>

                    </div>

                    <div class="line">

                        <div class="col half last-col">

                            <div class="inner">

                                <label for="<%=ClientID("Email") %>">

                                E-Mail Address*

                                <asp:RequiredFieldValidator 

                                    runat="server" 

                                    ControlToValidate="Email" 

                                    Display="dynamic"

                                    cssClass="error" 

                                    text="This field is required" />

                                </label>

                                <asp:TextBox ID="Email" cssClass="text" runat="server" />

                            </div>

                        </div>

                        <div class="col half last-col">

                            <div class="inner">

                                <label for="<%=ClientID("Phone") %>">Phone Number</label>

                                <asp:TextBox ID="Phone" cssClass="text" runat="server" />

                            </div>

                        </div>

                    </div>

                    <div class="line">

                        <div class="inner">

                            <label for="<%=ClientID("Program") %>">

                            Program*

                            <asp:RequiredFieldValidator 

                                runat="server" 

                                ControlToValidate="Program" 

                                Display="dynamic"

                                cssClass="error" 

                                text="This field is required"/>

                            </label>

                            <asp:DropDownList ID="Program" runat="server">

                                <asp:ListItem value="">[choose one]</asp:ListItem>

                                <asp:ListItem value="---School of Business---">---School of Business---</asp:ListItem>

                                <asp:ListItem value="B.A. Accounting">B.A. Accounting</asp:ListItem>

                                <asp:ListItem value="B.A. Business Administration - Accounting">B.A. Business Administration - Accounting</asp:ListItem>

                                <asp:ListItem value="B.A. Business Administration - Management">B.A. Business Administration - Management</asp:ListItem>

                                <asp:ListItem value="B.A. Business Administration - Marketing">B.A. Business Administration - Marketing</asp:ListItem>

                                <asp:ListItem value="B.S. Computer Information Systems">B.S. Computer Information Systems</asp:ListItem>

                                <asp:ListItem value="B.S. Health Care Management">B.S. Health Care Management</asp:ListItem>

                                <asp:ListItem value="B.A. Human Resources Management">B.A. Human Resources Management</asp:ListItem>

                                <asp:ListItem value="B.A. International Hospitality &amp; Tourism Management">B.A. International Hospitality &amp; Tourism Management</asp:ListItem>

                                <asp:ListItem value="---School of Arts &amp; Sciences---">---School of Arts &amp; Sciences---</asp:ListItem>

                                <asp:ListItem value="B.A. Liberal Studies">B.A. Liberal Studies</asp:ListItem>

                                <asp:ListItem value="B.A. Psychology">B.A. Psychology</asp:ListItem>

                                <asp:ListItem value="B.A. Religion">B.A. Religion</asp:ListItem>

                                <asp:ListItem value="B.A. Sociology">B.A. Sociology</asp:ListItem>

                                <asp:ListItem value="---School of Education &amp; Social Services---">---School of Education &amp; Social Services---</asp:ListItem>

                                <asp:ListItem value="B.A. Criminal Justice">B.A. Criminal Justice</asp:ListItem>

                                <asp:ListItem value="B.A. Criminal Justice - Criminalistics">B.A. Criminal Justice - Criminalistics</asp:ListItem>

                                <asp:ListItem value="B.A. Criminal Justice - Homeland Security">B.A. Criminal Justice - Homeland Security</asp:ListItem>

                                <asp:ListItem value="---Associate Programs---">---Associate Programs---</asp:ListItem>

                                <asp:ListItem value="A.A. Business Administration">A.A. Business Administration</asp:ListItem>

                                <asp:ListItem value="A.A. Criminal Justice">A.A. Criminal Justice</asp:ListItem>

                                <asp:ListItem value="A.A. Liberal Arts">A.A. Liberal Arts</asp:ListItem>

                            </asp:DropDownList>

                        </div>

                    </div>

                    <p>All colleges and universities attended and GPA at each institution</p>

                    <div class="line">

                        <div class="col half">

                            <div class="inner">

                                <label for="<%=ClientID("Institution1") %>">Institution</label>

                                <asp:TextBox ID="Institution1" cssClass="text" runat="server" />

                            </div>

                        </div>

                        <div class="col half last-col">

                            <div class="inner">

                                <label for="<%=ClientID("Gpa1") %>">GPA</label>

                                <asp:TextBox ID="Gpa1" cssClass="text" runat="server" />

                            </div>

                        </div>

                    </div>

                    <div class="line">

                        <div class="col half">

                            <div class="inner">

                                <label for="<%=ClientID("Institution2") %>">Institution</label>

                                <asp:TextBox ID="Institution2" cssClass="text" runat="server" />

                            </div>

                        </div>

                        <div class="col half last-col">

                            <div class="inner">

                                <label for="<%=ClientID("Gpa2") %>">GPA</label>

                                <asp:TextBox ID="Gpa2" cssClass="text" runat="server" />

                            </div>

                        </div>

                    </div>

                    <div class="line">

                        <div class="col half">

                            <div class="inner">

                                <label for="<%=ClientID("Institution3") %>">Institution</label>

                                <asp:TextBox ID="Institution3" cssClass="text" runat="server" />

                            </div>

                        </div>

                        <div class="col half last-col">

                            <div class="inner">

                                <label for="<%=ClientID("Gpa3") %>">GPA</label>

                                <asp:TextBox ID="Gpa3" cssClass="text" runat="server" />

                            </div>

                        </div>

                    </div>

                    <div class="line">

                        <div class="col half">

                            <div class="inner">

                                <label for="<%=ClientID("Institution4") %>">Institution</label>

                                <asp:TextBox ID="Institution4" cssClass="text" runat="server" />

                            </div>

                        </div>

                        <div class="col half last-col">

                            <div class="inner">

                                <label for="<%=ClientID("Gpa4") %>">GPA</label>

                                <asp:TextBox ID="Gpa4" cssClass="text" runat="server" />

                            </div>

                        </div>

                    </div>

                    <div class="line">

                        <div class="col half">

                            <div class="inner">

                                <label for="<%=ClientID("Institution5") %>">Institution</label>

                                <asp:TextBox ID="Institution5" cssClass="text" runat="server" />

                            </div>

                        </div>

                        <div class="col half last-col">

                            <div class="inner">

                                <label for="<%=ClientID("Gpa5") %>">GPA</label>

                                <asp:TextBox ID="Gpa5" cssClass="text" runat="server" />

                            </div>

                        </div>

                    </div>

     

                    <p>Planned Start Term</p>

     

                    <div class="line">

                        <div class="inner inline-radio-buttons">

                            <asp:RadioButton ID="Fall1" runat="server" />

                            <label for="<%=ClientID("Fall1") %>">Fall 1</label>

     

                            <asp:RadioButton ID="Fall2" runat="server" />

                            <label for="<%=ClientID("Fall2") %>">Fall 2</label>

     

                            <asp:RadioButton ID="Spring1" runat="server" />

                            <label for="<%=ClientID("Spring1") %>">Spring 1</label>

     

                            <asp:RadioButton ID="Spring2" runat="server" />

                            <label for="<%=ClientID("Spring2") %>">Spring 2</label>

     

                            <asp:RadioButton ID="Summer1" runat="server" />

                            <label for="<%=ClientID("Summer1") %>">Summer 1</label>

     

                            <asp:RadioButton ID="Summer2" runat="server" />

                            <label for="<%=ClientID("Summer2") %>">Summer 2</label>

                        </div>

                    </div>

                    <div class="line">

                        <div class="inner">

                            <asp:ImageButton src="/images/submit_application.png" runat="server" cssClass="submit-application" />

                        </div>

                    </div>

                </FormTemplate>

                <ConfirmationTemplate>

                    <h1>Thank You</h1>

                    <p>Your Academic Readiness Scholarship application has been sent to Saint Leo University. It will be reviewed with your college transcripts if you are a transfer student, or high school transcript if you are a first time college attendee. Please mail official transcripts to:</p>

                    <p><strong>Office of Admission, MC2008, Saint Leo, Florida 33574-6665</strong></p>

                </ConfirmationTemplate>

                </elliance:StandardForm>

                </form>

            </div>

        </div>

        <div class="aside">

            <div class="nav">

                <saintleo:RibbonCallout ID="RibbonCallout1" runat="server" />

            </div>

        </div>

    </div>

    </asp:Content>

     

     

     

     

     

    Thank you in advance!

  • Charles Afford 1163 posts 1709 karma points
    Jul 28, 2014 @ 19:35
    Charles Afford
    0

    This will be because the content in published.  If you have a problem in the masterpage you would get a diffrent error :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies