Render.model in aspx

I'm working on sample program to show scheduler-net from this site: http://scheduler-net.com/

I have a homepage developed with a controller. Scheduler calender is in another controller. Now i need to place the scheduler calender in the homepage of homepagecontroller.cs

I tried to transfer control from one action to another, but it is possible only under same controller. according to this reference: how can i transfer information of one view to another?

How can I place the scheduler calender developed from one controller to the homecontroller. Or is that possible avoid calendercontroller.cs and place in the 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 to enable implementation CRUD operations
        return View(scheduler);
    }

Answers


You could render it as a partial in your view. Put this in views/Home/Index.cshtml:

@{
    Html.RenderAction("Index", "SchedulerController");
}

Obviously, replace Index and SchedulerController with the correct names.


Need Your Help

Is it better to create Model classes or stick with generic database utility class?

database asp.net-mvc ado.net

We have a simple utility class in-house for our database calls (a light wrapper around ADO.NET), but I am thinking of creating classes for each database/object. Would it be smart thing to do so, or

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.