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
Post a Comment