Author: vinothkhannas | Posted on: 4/5/2010 1:10:24 AM | Views : 246

Hi All,
I have this scenario. I have a aspx page and a ascx user control page. One button is on aspx page and one button is on user control. On the button click from aspx, am saving a value in database and if there is a value in DB am disabling the button in user control(i need to disable) . But the problem is, the page cycle is as follows.
1. aspx page_load    2.ascx page_load          3. aspx button_click
Now since am saving the value only in 3rd stage and by that time user control has already been loaded am the button is not getting disabled. But if i refresh the screen now the page_load happens for both the pages and automatically the button gets disabled. So i need to overcome this and need to disable the button in button click event itself. Can i call the page_load of the usercontrol in the button_click event? Or is any other way exists?
What i've tried is:
1. I ...

Go to the complete details ...