Any suggestions on how to pass values to the dialog? Something either like a querystring value or a property?
The DialogWindow is actually an element on the same page as the rest of your controls, so it's not necessary to "pass" data back and forth.
Hope this helps,
-Tony
Hi Tony,
Thanks for responding, guess I should I have put more content in the initial post. I had just typed up this post titled before this one "ContentURL to another aspx page, how to close dialog ... " I've figured this out already.
So my initial thought was to make a generic page that would contain the WebDialog and then reuse the control without putting it on every page I wanted to use it in.
To accomplish this the generic page would have to have ability to dynamically change the dialog message, the OK button would have to dynamically know how to callback to the calling page to finishing processing what OK meant. Cancel button would need to callback to calling page so the generic dialog window could be closed. Seems like it could be a little cumbersome and prone to errors easily.
Perhaps at a high level you might have some thoughts on how to accomplish the dynamic portions of the request.
Thanks ... Chad
I still don't fully understand exactly what your trying to do Chad. Are you saying you want to put the WebDialogWindow control in its own web page, then open that web page in its own browser window?
Or are you looking to use something like a MasterPage and add the dialog to that?
Devin
Yes I would like the WebDialogWindow to be in its own page and then callable by any aspx page that I need to use it in. So instead having to add to every page I want to show, I can simply call one location that contains the control. Pass all the necessary dynamic information like title, message body, and where to callback on OK or Cancel.
I wouldn't say I'm looking for Masterpage concept, so far I haven't really been able to use Master/Content pages. For instance I'm using the UltraWebListBar to create a navigation menu. This control doesn't work well with Master/Content pages, I had to punt and use a FrameSet. In fact your SampleBrowser uses a FrameSet.
Thanks for responding and hope to continue a good discussion on this topic.