A
A
Alexeytur2019-12-12 05:06:39
ASP.NET
Alexeytur, 2019-12-12 05:06:39

Double calling element event?

Good afternoon.
There is a page on WebForms, on it is a GridView, inside it are TextBox elements. I create an event handler for the OnTextChanged event for these TextBoxes. And for some reason this handler is always called twice in a row. This also calls Page_Load 2 times.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexeytur, 2019-12-20
@Alexeytur

In my case it was a debug glitch. If you put breakpoints, then they stopped twice. If you put logging instead of them, then it will be logged once.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question