Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refreshing controls in masterpage from user control (CallBack issue)

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I have a public method in my applications MasterPage which I can call from within a UserControl - i.e. by:

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
 
this is probably a better question for DevExpress experts. I'm sure they have a support forum on their website.

my guess is the CustombuttonCallback is an ajax thing. in which case a subset of the html in rendered to the screen durning the CustombuttonCallback. the results of the masterpage method are not sent to the client.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top