html - How to convert two views into partial views and add to a view. The two views also include separate actions in a controller -


requirement: 2 views separate actions each exists in controller. need convert 2 views single view making them partial view. how can it, there exists 2 separate actions. how invoke them simultaneously. please provide solution.

existing scenario: 1.view1.cshtml action1 2.view2.cshtml action2

required scenario: 1. newview partialview1 , partialview2 actions

@{     viewbag.title = "intake"; }  <div class="row">     @html.action("newintake", "intake") </div> <div class="row">     @html.action("searchintake","intake") </div> 

actions:

public async task<actionresult> newintake(int? trackingnumber = null)         { ... }   public async task<actionresult> searchintake()         { ... } 

i tried above approach create view. facing below issue.

 `{"error executing child request handler 'system.web.mvc.httphandlerutil+serverexecutehttphandlerasyncwrapper'."}` 


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -