By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,725 Members | 1,269 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,725 IT Pros & Developers. It's quick & easy.

Embedded datagrid in custom server control

P: n/a
Hi,

I created a custom server control, compiled as a DLL (it's a composite
server control).
In my apsx page, I use something like :
<MyAssembly:MyObject properties>
<asp:datagrid />
</MyAssembly:MyObject>

Basically, everything works except when I post back the page from the
datagrid (to edit the content for example), the datagrid disappears. I
know this is due to state management : upon post back, as it is not
handled in my custom control, the state of the datagrid is lost, so it
is empty.

My question is, how do I preserve states of an embedded control in a
custom control upon post back?

Any help would be appreciated.
Julien
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.