Link to home
Start Free TrialLog in
Avatar of giligatech
giligatech

asked on

Databinding a usercontrol again

Hi,
I have a master page which has a UserControl called "ucLogin".

the user control has labels that write the name of the user, money balance, etc....
The text is added to the labels from the UserControl's Page_Load()

My problem is that in some pages (that has the masterPageFile) I need to update the user balance.
so when there is a postback (lets say to increace the balance), the ucLogin UserControl renders first and then the postback call is made.

What happens is the I need to Refresh (F5) to see that the Login UserControl is really updated.

I tryied after the postback to do
Page.Master.FindControl("ucLogin").DataBind();
(it succeed) but the labels are not changed (the databind() doesn't call again to the Login UserControl's Page_Load().

What should I do?
ASKER CERTIFIED SOLUTION
Avatar of crazyman
crazyman
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of giligatech
giligatech

ASKER

Thanks.