About Edit directory

Topics: Developer Forum
Aug 30, 2007 at 7:10 AM
I'm playing with N2CMS, and it seems to be a excellent project on ASP.NET 2.0. But there's quite a few things confusing me.
In the sample website, there's a edit directory,but in the N2DevelopWeb project in source code solution there's not such directory. I just want to know, when I type http://localhost:2088/edit/ in URL address, how does N2 process this request and delegate it to the separate N2.Edit library?
And in many projects in N2 solution I see UI files such as *.aspx, *.CSS, need these files copy to web project?


Sep 2, 2007 at 6:32 PM
hi Nuls,

Hmm, from my perspective the edit folder is right there under the N2DevelopWeb. I'll write what I did. Maybe you did something different.

  • downloaded and unzipped the source code
  • opened the n2.sln
  • had to add ..\lib as reference paths on a couple of projects
  • compiled and run n2developmentweb
  • when I browse to /edit the login screen is displayed

Did you do something different?

Sep 2, 2007 at 6:35 PM
Ahh, maybe I got it. There are two web projects:
  • N2.Templates.UI
  • N2DevelopmentWeb

I usually develop the edit functionality through the N2DevelopmentWeb project and then copy a release onto the n2.templates.ui project manually. Hence it's not in source control at that location.

You could download a runtime files and drop them into the n2.templates.ui folder.


Sep 3, 2007 at 2:03 AM

Thank you for your project and explanation.

You say: "Hmm, from my perspective the edit folder is right there under the N2DevelopWeb", but I can't find that folder in my version. My source version was just download from codeplex.com, I didn't do anything different.
After I compiled the project and start the N2DevelopmentWeb,When I type http://localhost:2088/edit/ in URL address, I get the login form . Yes, the N2DevelopmentWeb project works,but I don't know the mechanism.Why it can work without that /edit folder?

You said you wanted to write what you did, I hope I can read it early.

Thank you!

Sep 3, 2007 at 6:29 AM
I think I'v begun to understand it after I read this aritcle
"How To Create an ASP.NET Application from Multiple Projects for Team Development", http://support.microsoft.com/default.aspx?scid=kb;EN-US;307467#5

It do puzzle me a few time.

thanks to Cristian again