make popup

Hi.

Try to go to this page: http://www.daniweb.com/forums/thread70169.html
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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
xoperatorConnect With a Mentor Commented:
Hi,

Here is the requested tutorial, hope i helped !

http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/

Enjoy !
0
 
xoperatorCommented:
If you need anything else, don't hesitate to contact !
0
 
arunjeyachandranCommented:
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) 
{
if(IsPostBack)
{
Label1.Text = HiddenField1.Value;
}
}

Open in new window

0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Jesper ChristensenProgrammerAuthor Commented:
xoperator:: thank you for the link. It almost works.
I want to call the popup from my asp.net 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?
0
 
Jesper ChristensenProgrammerAuthor Commented:
Found a solution:
Page.ClientScript.RegisterStartupScript(this.GetType(), "popup", "centerPopup();loadPopup();", true);
0
All Courses

From novice to tech pro — start learning today.