javascript pop up / ascx

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" />"
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Randy PooleCommented:
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.
ITsolutionWizardAuthor Commented:
no iframe.
Randy PooleCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.