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
    0

    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
    0

    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);
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies