D
debartsa
Hi Everybody,
I have a composite control (in C#) which creates a DataGrid child control
that binds to a DataSource (DataSet resultant from a sql query) passed in by
the consuming .aspx. The .aspx page does the typical... if (!Postback)
{ //define datasource and bind } My question is how does my composite
control recreate the DataGrid from ViewState upon postback? i.e. When
postback occurs I can't use the DataSource passed in from the .aspx page?
I've read msdn articles that explain creating a dummy datasource to be used
upon postback? But how do I populated the dummy datasource with the same
values I originally got from my initial sql query?
Thanks for any help!
Sam
I have a composite control (in C#) which creates a DataGrid child control
that binds to a DataSource (DataSet resultant from a sql query) passed in by
the consuming .aspx. The .aspx page does the typical... if (!Postback)
{ //define datasource and bind } My question is how does my composite
control recreate the DataGrid from ViewState upon postback? i.e. When
postback occurs I can't use the DataSource passed in from the .aspx page?
I've read msdn articles that explain creating a dummy datasource to be used
upon postback? But how do I populated the dummy datasource with the same
values I originally got from my initial sql query?
Thanks for any help!
Sam