Aug 11, 2014 at 11:23 PM
Edited Aug 11, 2014 at 11:50 PM
Okay, hopefully this is my last quesion, I'm SO close to having this done, I want to thank all those who have helped me with the BE 3.0 Project, it is VERY appreciated.
What I'm trying to do now is to add two new pages to the Blog - I have it set up like a blog on the first page, and then want to have two other pages that are part of the website and I should be able to create the page and reference it in the Site.Master Menu.
The Menu works perfectly, BUT, adding a new page to the BE isn't working. Well, at least not correctly. (Sigh)
Fist, I want to use my own Contact page. I know there is one that I can (sort-of) customize, but I don't like the layout of the contact form, and I want to add a very small section of Flash above the Form. Again, I have this working perfectly on my VS 2010
test site, but when I try to copy the code over to the BE I'm getting several errors.
First, just creating a new Contact.aspx page (I'm using WebMatrix to do this for the BE) it doesn't automatically create my code-behind page. Unfortunately, I am NOT a C# programmer, I'm a VB programmer, so I honestly don't know what code needs to go in a Contact.aspx.cs
file as I would in the code-behind for VB:
Partial Class Contact
So when I try to run it I get "Object reference not set to an instance of an object. " But the really weird part is that in the error message this is:
[NullReferenceException: Object reference not set to an instance of an object.]
contact.OnLoad(EventArgs e) in c:\Users\thecuddlyhoney\Desktop\BlogEngine\Versions\blogengine-220.127.116.11\blogengine_842a6cc8d607\BlogEngine\BlogEngine.NET\contact.aspx.cs:24
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
Ummm - c:\Users\thecuddlyhoney\Desktop
is NOT my username or location of the BE! Any idea what the heck that means?
Edited to add - In the first line of code in the C# .aspx files, I don't see where it is referring to a MasterPage (i.e., Site.Master) so I'm not sure how to reference the Site.Master page for this either. Normally you would have:
<%@ Page Title="" Language="C#" MasterPageFile="~/DJFinite.master" AutoEventWireup="true" CodeFile="NewContact.aspx.cs" Inherits="NewContact" %>
But there is nothing like that in the BE pages so I'm not sure how to reference the Site.Master page?