Using __EVENTARGUMENT in a postback

This may be the main question. I know that a function __doPostback()takes 2 arguments, eventtarget and eventargs. eventtarget is used to identify the control that causes the postback. Then what is the use of eventargs in a function __doPostback?

I saw that the function __doPostbackalways set the hidden field __EVENTARGUMENTto nothing for any postbacks caused by even auto-repeat controls to true or to a control like linkButton.

Please give me your input.

Thanks in advance!

+3
source share
2 answers

_EVENTARGUMENT, javascript:

  javascript:__doPostBack('MyControl', 'myArgument');

, ASP.NET : http://aspalliance.com/895_Understanding_the_JavaScript___doPostBack_Function.5

+3

__EVENTARGUMENT - , . , , null , .

__EVENTARGUMENT, , (, linkbutton gridview, /commandargument/etc ). , .

+2

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


All Articles