How to force asp.net control to reload postback data?

What is the best practice to force reload Postback Data and ViewState into code?

The reason I'm asking about this is because I have one gridview that is dynamically generated and when I create the structure the postback data is already loaded and I want asp.net to reload the postback data like only i have a gridView structure created.

How can i achieve this?

thank

+3
source share
1 answer

I do not think this is possible, but it is not necessary. You just need to create a gridView structure at an earlier page event (e.g. OnInit).

+1

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


All Articles