How to interact with a secondary site from within a Main site

Отвечено How to interact with a secondary site from within a Main site

  • Sunday, April 15, 2012 2:18 AM
     
     

    I have a project at work that I'm currently working on and one of the requirements is that the user wants to be able to click on a link from within the main site (parent site), and have a secondary site (child site) pop-out from within the main site. The user needs to be able to interact with the secondary site (child site) from within the main site (parent site), and/or be able to click on a button and have the secondary site popout of the main site. I also need to be able to pass session data back and fowarth between both the main site and the secondary site. I realize that this is a mouth full, but I really don't know how else to explain it. The technology that we are using is VB. Net 2.0, and IIS 5.0. I would assme that I can use some sort of java script, but I'm not sure. Any help would be appreciated.

    Thanks


    Da Chosen One

All Replies

  • Sunday, April 15, 2012 9:41 AM
     
     

    The Remote Desktop aplication is the way to go.  Normally you can manually open up the application from the Accessory menu in windows.  the application is in the System32 folder called MSTSC.exe, but it is also a library in NET under the com tab MSTSCLIB - “Microsoft Terminal Services Active Client 1.0 Type Library”  (usesMSTSC.dll).  The libraary has an activeX component that you can add to a form.  See these two webpages

    This is a C# example that has a good picture of what the application will look like and a good top level explanation of the tool

    http://www.codeproject.com/Articles/43705/Remote-Desktop-using-C-NET

    Here is some VB code to start the application

    http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/cb6045a3-45d9-4d0c-a39d-697e2f77270f


    jdweng

  • Monday, April 16, 2012 5:51 PM
     
     
    This needs to happen dynamically within my code. I need to be able to click on a link from within my main page and have it launch a site in a child browser that lives inside the parent browser. I'm not relly sure how to expain this, so I hope that I didn't confuse you more.

    Da Chosen One

  • Monday, April 16, 2012 6:03 PM
     
     
    You can't, but you can use a trick.  Open two browsers.  Then you can make only one visible at a time.

    jdweng

  • Monday, April 16, 2012 7:13 PM
     
     
    How do I do this?

    Da Chosen One

  • Monday, April 16, 2012 7:18 PM
     
     
    You would need to capture the events of each browser.  So when a link on the main page is clicked it would make the main page go invisible (or may minimize) and make the child visible.  When the child is closed you make it invisible and reopen the main browser.

    jdweng

  • Monday, April 16, 2012 9:46 PM
     
     Answered

    I figured it out. I just used an IFrame:

        <iframe
             runat = "server"
             id = "aspFrame"
             src = ""
             frameborder="0" >
        </iframe>

    Thanks for the response though


    Da Chosen One

    • Marked As Answer by Da Chosen One Monday, April 16, 2012 9:46 PM
    •