Вопрос

I create a time sheet with a calendar. Now I am using the event calendar pre-render. But the event runs on every click. I want to block this event from firing when I click a button. Is this possible or not?

Это было полезно?

Решение

You can try with this code

If( ! IsPostBack)
{
  //Execute Your code
}

When you click button => He don't pass by ( ! IsPostBack)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top