I have a public method in my applications MasterPage which I can call from within a UserControl - i.e. by:
This works fine from behind a button say (in the User Control) as we're effectively doing a postback.
This updates a label control in the MasterPage showing new totals, etc.
However I have a situation whereby I'm working with a CustombuttonCallback event from an AspxGridView (DevExpress control). When I try the same code as above (following an update to the database) - when I debug the code I can see that this method 'MyMethodName' in the MasterPage is stepped through - but the control is not refreshed.
How can I refresh the control (or MasterPage in it's entirity?) by means of the callback code?
Any suggestions would be appreciated.
Thanks in advance.
Steve
Code:
((MasterPage)this.Page.Master).MyMethodName();
This works fine from behind a button say (in the User Control) as we're effectively doing a postback.
This updates a label control in the MasterPage showing new totals, etc.
However I have a situation whereby I'm working with a CustombuttonCallback event from an AspxGridView (DevExpress control). When I try the same code as above (following an update to the database) - when I debug the code I can see that this method 'MyMethodName' in the MasterPage is stepped through - but the control is not refreshed.
How can I refresh the control (or MasterPage in it's entirity?) by means of the callback code?
Any suggestions would be appreciated.
Thanks in advance.
Steve