pencilCake
pencilCake

Reputation: 53243

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

Upvotes: 3

Views: 2157

Answers (1)

fearofawhackplanet
fearofawhackplanet

Reputation: 53396

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).

Upvotes: 1

Related Questions