Connecting Tech Pros Worldwide Help | Site Map

Open a window in a window

gchq's Avatar
Member
 
Join Date: Jan 2007
Posts: 96
#1: Jan 1 '09
Hi there

Using VB.NET 2.0 I'm attempting to open a window that remains contained within the existing window! Any idea how to accomplish this?

Thanks - and Happy New Year
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Jan 2 '09

re: Open a window in a window


Happy new year! Do you want to use masterpages?
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#3: Jan 2 '09

re: Open a window in a window


If I understand you correctly, you should look into using a ModalPopup.
Example:
ModalPopup Sample
gchq's Avatar
Member
 
Join Date: Jan 2007
Posts: 96
#4: Jan 2 '09

re: Open a window in a window


Thanks for your replies...
1. Using Masterpage is not essential, but in Version 1 (the last app) it was used

2. ModalPopupExtender is ok for small pop-ups (I use this for reporting errors and such like), but where you need to call another (very detailed) page it wouldn't work... and having the possibilty of multiple windows open would also be a requirement..

The idea is to get the 'look and feel' of a windows app, where the child windows are all contained within the main app window... I've seen this once before in a web page, but of course can't find it again - sigh
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#5: Jan 3 '09

re: Open a window in a window


Well, what you're looking for is a rich client, and it's not easy to achieve in a web page. You can try a DragPanel but it's limitations are similar to the ModalPopup.

Perhaps you can use DragPanels with iframes and other pages.

The controls in that Ajax Control Toolkit are the richest you are going to get with just ASP.NET. If you need more, you are going to need to write something for a client plugin like Flash or Silverlight.

Good luck on your project!
gchq's Avatar
Member
 
Join Date: Jan 2007
Posts: 96
#6: Jan 3 '09

re: Open a window in a window


This seems to be the concept I was looking for - just need to create the JavaScript as a class to feed in variables and launch on the page with ScriptManager...

Floating window with tabs
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#7: Jan 4 '09

re: Open a window in a window


Well, you could do that exactly with a TabContainer and a DragPanel and a ResizableControl from the Ajax Toolkit that I've been linking to.
gchq's Avatar
Member
 
Join Date: Jan 2007
Posts: 96
#8: Jan 4 '09

re: Open a window in a window


The only trouble with the TabContainer controls is they are so problematic when it comes to 'wiring up' code behind for onclick - I have tried them and will include just the codebehind below as an example. This was a small menu section, need to do one at least ten times this size and I'd be falling over myself with keeping track of Ajax controls.

So far the JavaScript mentioned is doing a great job, apart from re-loading closed windows - that is giving me some grief...

Anyway, if you can't sleep here is the cure - and the reason I'd rather stay clear of TabContainer,,,,,,,, Having said that nothing is ever cast in stone!
Attached Files
File Type: txt open_window_in_window.txt (217.6 KB, 2 views)
Reply