MVC ContentController Class do not get instance from url transfer.

Topics: Developer Forum, Project Management Forum, User Forum
Nov 3, 2008 at 1:14 AM

In the MVC,a controller inherit from the N2.web.Mvc's ContentController class.
public abstract class ContentController<T> : Controller where T : N2.ContentItem
        protected ContentController();

        protected virtual T CurrentItem { get; }
        protected virtual IEngine Engine { get; }

        public abstract ActionResult Index();

I have a problem. When I transfer a page form address bar, the ContentController class's CurrentItem  is null. If it's transfer from N2 inner ,the CurrentItem have content.
How do I config or write code, I can have CurrentItem content in which it transfers from the address bar.

Nov 3, 2008 at 1:18 AM
BTW, the URLs ending without .mvc . For example, in the address bar  you type http://localhost/Homepage .
Nov 3, 2008 at 7:10 PM
I'm not sure I'm following. How are you going about transferring from address bar? What does the url's look like when it works and not work respectively?