|
|
Rank: Newbie Groups: Member
Joined: 6/24/2009 Posts: 6 Location: Belgium
|
Hey, by making use of a method called Reload(), I can execute the queries of my DataBlocks thereby refreshing the data. I wish to call this method every time i re-enter this page, by calling NavigateBack() on another page in the same module. Code:private void Reload() { GetOrdersFromClient.ExecuteQuery(); GetInvoicesByClient.ExecuteQuery(); GetOffersFromClient.ExecuteQuery(); } Greets, Xen.
|
|
Rank: Vidyano Team Groups: Customers
, Member, Vidyano Team
Joined: 11/20/2008 Posts: 3 Location: Belgium
|
hey, you can always override the OnActivated method on the page controller to call your Reload method. This method gets called whenever the page gets activated. there is a similar method for when the page gets deactivated: OnDeactivated Code: protected override void OnActivated() { base.OnActivated(); Reload(); }
protected override void OnDeactivated() { base.OnDeactivated(); DeactivateCode(); }
|
|
Rank: Newbie Groups: Member
Joined: 6/24/2009 Posts: 6 Location: Belgium
|
That does the trick, thanks for the quick reply Grtz, Xen.
|
|
|
Guest |