Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

What is the best practice to force the postback Data and ViewState data to be re-loaded on the code behind?

The reason I ask this is, i have one gridview which is generated dynamically and I when it is structure is generated the postback data is already loaded and I want to forse asp.net to reload the postback data once I have my gridView structure is generated.

How can I achieve this?

Thanks

like image 305
pencilCake Avatar asked Jan 30 '26 19:01

pencilCake


1 Answers

I don't think this is possibe, but it's not necessary anyway. You just need to build your gridView structure at an earlier page event (eg OnInit).

like image 135
fearofawhackplanet Avatar answered Feb 02 '26 09:02

fearofawhackplanet