PDA

View Full Version : DialogEx + PageJump Question


Myst5
10-25-2008, 11:46 PM
So here is what i am trying to achieve
I need a button on DialoxEx which closes the dialog and navigates to a specific page. Since navigating through pages is impossible while the DialogEx is shown I tried putting Page.Jump onclose of the current dialog and then closing it but nothing happened.
Does anyone has any idea how to do this?

Thanks in advance

Dermot
10-26-2008, 12:28 AM
Put the Page.Jump in the page you open the dialog from.

DialogEx.Show("Dialog1")
Page.Jump("Page2")

Myst5
10-26-2008, 03:12 AM
Thanks for the reply but this is not going to work for me because i don't know which page is going to be opened before the dialog is opened. There is info on the dialog and based on it the user chooses where to go next. So is there a way to navigate from the dialog and not before the dialog is opened?

Dermot
10-26-2008, 10:38 AM
Then use a variable for the page name and set the variable to the page selected by the user.

On the page:
DialogEx.Show("Dialog1")
Page.Jump(JumpTo)

On the dialog:
JumpTo = "Whatever page they selected"
DialogEx.Close()

Myst5
10-27-2008, 07:30 AM
Thanks buddy this was really helpful