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
9 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]
9 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 1 months old and has been closed. Please create a new question if you have anything to add.