Asp.net mvc getting partial view inside another view folder

Posted by Shawn Mclean on Stack Overflow See other posts from Stack Overflow or by Shawn Mclean
Published on 2010-03-12T03:06:45Z Indexed on 2010/03/12 3:17 UTC
Read the original article Hit count: 276

Filed under:

I have inside a controller

PostLogicController.cs

    public ActionResult GetCreateNormalPost()
    {
        return PartialView("CreateNormalPost", null);

    }

CreateNormalPost is inside the folder Post (which belongs to another post controller). How do I go about returning the CreateNormalPost.ascx?

My folders are structured as follows:

Controllers

PostController.cs

PostLogicController.cs

Views

Post

Index.aspx

CreateNormalPost.ascx

There is no folder for PostLogicController.

© Stack Overflow or respective owner

Related posts about asp.net-mvc