Copied to clipboard

Flag this post as spam?

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

  • Anjali Sharma 4 posts 74 karma points
    Dec 07, 2017 @ 05:37
    Anjali Sharma

    How to link one Document type template to another document type template

    In my LoginController:SurfaceController after successful login it should render the HomePage but Its not redirecting to HomeController whose documentType is different and if redirect then it doesnot render the strongly types view . Is there any solution ?

  • Anjali Sharma 4 posts 74 karma points
    Dec 14, 2017 @ 14:20
    Anjali Sharma

    I got way to solve this

    In Login controller action Login return View like this

                List<IPublishedContent> list=CurrentPage.Children.ToList();
                RenderModel model = new RenderModel(list[0]);
                return View(@"~/Views/Home.cshtml",@"~/Views/HomeLayout.cshtml",model);
Please Sign in or register to post replies

Write your reply to: