Search code examples
asp.netpage-lifecycle

Which control posted back my page? (ASP.NET Page)


1 -I wonder that how to get which control posted back the page and is there any way to convert

Request["__EVENTVALIDATION"]

value string to understandable string.

2- in which order components will be bind and how do they get their value from viewstate?

Thank 4 all your helps...


Solution

  • On webforms ASP.NET stores the control that initiated the postback in a hidden field called "__EVENTTARGET" except for Button controls.
    More information about that can be found here and here.