search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Access to HttpContext User Name in call back handler

Asked by Ram
7 years ago.

How can I access the user name in a MVC scheduler app? We need to add this to the event move.

Answer posted by Dan Letecky [DayPilot]
7 years ago.

You can access the controller using Controller property in the backend class:

public class SchedulerController : Controller

  public ActionResult Backend()
      return new Dps().CallBack(this);

  class Dps : DayPilotScheduler

      protected override void OnInit(InitArgs ea)
        var c = Controller;

        // ...

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.