Can I find out what control events will fire when ASP postback?

Is it possible to get a list of control events that will be triggered before they occur, say, inside the handler Page_Load?

For example, if a button was pressed, can I understand this before the event handler is called button_click?

+3
source share
4 answers

You have chosen a very difficult question ... the reason is that there are several ways in which events will be triggered.

1) __EVENTTARGET ( ) 2) MyButt, "MyButt =". 3) (, TextBox, ) , , ViewState, , "Text_Changed".

# 1 # 2, .

+2

, __EVENTTARGET . . , , ( ), , (, ), , , TextChanged.

, , , - . , , . , , viewstate , , . ( viewstate) , , .

? , .

+2

.

Page.Request.Form["__EVENTTARGET"]
0

, , , .

Another way would be to simply set some breakpoints when debugging.

0
source

Source: https://habr.com/ru/post/1698796/


All Articles