User Control Data binding

M

Maury

Hello,
I created two user control,
the first manage an object of mine,
the second is a DataList in which each Item is the first
control...when I click the 'save' button in the first control,
the object is saved with new values, but in the list is displayed the
old value (until I postBack again)

Can someone tell me the right way to manage updates of nested user controls?
Thanks
M.
 
S

Shahzad Godil

Try this

In inserted event of DataSource of first control, you can call

1. Me.SecondControl.FindControl("DataList").Databind

Shahzad Godil
Karachi-Pakistan
MSN Messenger : (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top