Copied to clipboard

Flag this post as spam?

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


  • Sarika 2 posts 72 karma points
    Jun 10, 2019 @ 15:12
    Sarika
    0

    Rendering partial views displaying content in a new plain blank webpage .

    Hi, I am trying to display partialView content in a same page or somehow needs to apply master-template,css etc so it look similar to current template after each form-submission/postback. Currently, the code below works fine for Step-1 only and displays rest of the partialView contents in a new plain webpage.

     //Step-1
        //Get input form
        //Created a template called InputForm from backOffice of umbraco website and added @{ Html.RenderAction("GetInputForm", "xyzControllerName", new{input = ""}) } in to it.
        public ActionResult GetInputForm(string input) 
        {
            return PartialView("_partialViewOne", new ViewModel());//This PartialView displays content as axpected 
        }
    
        //Step-2
        //Submit input and Get details
        public ActionResult StepTwo(ViewModel model)
        {
               //some code
                return PartialView("_partialViewTwo",new SomeOtherModel(propOne = model.propOne)); //ISSUE here: This PartialView displays content in new plain blanc page
    
        }
        //Step-3
        //Submit postcode and Get location By Postcode 
        public ActionResult StepThree(SomeOtherModel model)
        {
            //some code
            return PartialView("_partialViewThree", model); //ISSUE here: and rest of all PartialViews displays content in new plain blanc page 
        }
    
        //Step-4...
        //Step-5...
        //Step-6...
    
  • 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.

    Continue discussion

Please Sign in or register to post replies