javascript pop up / ascx

Posted on 2014-07-15
Last Modified: 2014-08-03
Attached is javascript codes to popup div in the center. It works fine. But now I want to do something similar below.
Is it possible?

document.getElementById("box").innerHTML = "<uc1:Default runat="server" ID="testing" Visible="true" />"
Question by:ITsolutionWizard
    LVL 21

    Expert Comment

    by:Randy Poole
    You are trying to place an asp control syntax inside the div that you create with your popup box.   What you would need to do is modify your popup box to use an iframe inside that created div and then have the iframe load a page that has this code as well as the other syntax , master page etc for that page.

    Author Comment

    no iframe.
    LVL 21

    Accepted Solution

    Hmm, you can try something like this, on your page:
    <div id='pushdiv'><uc1:Default runat="server" ID="testing" Visible="true" /></div> 

    Open in new window

    and change this line in your javascript:
    document.getElementById("box").innerHTML = "This is a box. Click me to exit effect.";

    Open in new window


    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
    In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now