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

Daypilot is calling Pageload multiple times

Asked by Akshay
7 years ago.

Hi,

The daypilot is calling Pageload multiple times. Have you anyone come across this situation?

If yes,

please help us resolve this.

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

DayPilot uses the standard ASP.NET CallBack mechanism to communicate with the server side. Each callback fires the respective event handler (e.g. EventMove) but it also goes through Page_Load first. This is how CallBacks work in ASP.NET. You can't prevent Page_Load from firing but you can detect a callback using IsCallBack property:

protected void Page_Load(object sender, EventArgs e)
{
    if (IsCallBack)
    {
      // ... callback detected
    }
}

It's the same approach that you use when detecting PostBacks.

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