asp.net mvc - Render.model in aspx -
i'm working on sample program show scheduler-net site: http://scheduler-net.com/
i have homepage developed controller. scheduler calender in controller. need place scheduler calender in homepage of homepagecontroller.cs
i tried transfer control 1 action another, possible under same controller. according reference: how can transfer information of 1 view another?
how can place scheduler calender developed 1 controller homecontroller. or possible avoid calendercontroller.cs , place in homecontroller itself.
public actionresult index() { var scheduler = new dhxscheduler(this); //initializes dhtmlxscheduler scheduler.loaddata = true;// allows loading data scheduler.enabledataprocessor = true;// enables dataprocessor in order enable implementation crud operations return view(scheduler); }
you render partial in view. put in views/home/index.cshtml:
@{ html.renderaction("index", "schedulercontroller"); }
obviously, replace index , schedulercontroller correct names.
Comments
Post a Comment