ModalPopUps using .master and .sitemap files??

Last post 11-05-2007 9:26 PM by Raymond Wen - MSFT. 2 replies.

Sort Posts:

  • ModalPopUps using .master and .sitemap files??

    10-31-2007, 1:02 PM
    • Member
      2 point Member
    • djclothier
    • Member since 10-18-2007, 6:44 PM
    • London
    • Posts 17

    Hi I'm wondering if the following is possible...

    I'm using SQL Express, VS Web Developer, AJAX 1.0, VB.net, etc

    I'm using a web.sitemap file for navigation, within a default.master page. I want to add a 'Contact Me' link to it; that when clicked will initiate a ModalPopup with an email form.

    The ModalPopup and email form is not the problem, but I'm struggling to see how to get the 'Contact Me' link in using the xml web.sitemap file, and then also being able to add a control around it.

    Any pointers?

    Thanks,

    David



     

    David Clothier



    If this answers to your question, please mark it solved/answered.
  • Re: ModalPopUps using .master and .sitemap files??

    10-31-2007, 1:47 PM
    • Member
      2 point Member
    • djclothier
    • Member since 10-18-2007, 6:44 PM
    • London
    • Posts 17

     Or maybe I am thinking about this back to front...

     If I have a page, say ContactMe.aspx, and it was referenced through the web.sitemap file for navigation, is there a way for this page 'appear' as a ModalPopup? For instance is there an onLoad (or something) function I can use/call that will let the ModalPopup do it's thing without taking the user away from whatever page they were on?

     
    David
     

    David Clothier



    If this answers to your question, please mark it solved/answered.
  • Re: ModalPopUps using .master and .sitemap files??

    11-05-2007, 9:26 PM
    Answer

     Hi David,

    The easiest way I can think of is using javascript and iframe to achieve it.

    1. Add a popupextender and set its target to the link

    2. Add a panel which will work as the popup, and place an iframe inside it

    3. Set the source page of the iframe to the page you plan to show


     

Page 1 of 1 (3 items)