make popup


Try to go to this page:
After few seconds, a popup will show and the rest of the page will change color.

Does anybody know a tutorial or example in how to make a popup like this?
Jesper ChristensenProgrammerAsked:
Who is Participating?
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.


Here is the requested tutorial, hope i helped !

Enjoy !

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
If you need anything else, don't hesitate to contact !
Here is server side coding. The button has a client script calling the prompt function. The value returned by the prompt function is set to the value of the hidden field, which gets submitted to the server
protected void Page_Load(object sender, EventArgs e) 
Label1.Text = HiddenField1.Value;

Open in new window

The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Jesper ChristensenProgrammerAuthor Commented:
xoperator:: thank you for the link. It almost works.
I want to call the popup from my codebehind file, i´ve tried

string script = string.Empty;
            script = "<SCRIPT LANGUAGE='JavaScript'>";
            script = "centerPopup();loadPopup();";
            script += "</SCRIPT>";
            this.ClientScript.RegisterClientScriptBlock(this.GetType(), "clientScript", script);

But nothing happens..? Do you have a solution?
Jesper ChristensenProgrammerAuthor Commented:
Found a solution:
Page.ClientScript.RegisterStartupScript(this.GetType(), "popup", "centerPopup();loadPopup();", true);
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
.NET Programming

From novice to tech pro — start learning today.