How to show a pop-up window on the page?

L

lichaoir

How to show a pop-up window on the page?
Thanks for your answer and discussion.
 
N

northof40

How to show a pop-up window on the page?
Thanks for your answer and discussion.

Do you mean a popup window showing the 'ErrorMessage' property from a,
for instance, RequiredFieldValidator ?

Try using the 'showMessageBox' property on a ValidationSummary
object.

If you're looking for a more general type of popup (ie 'Do you really
want to do this' type thing) you might find this forum thread
useful ...

http://tinyurl.com/2n3nac
 
M

Maximiliano

How to show a pop-up window on the page?
Thanks for your answer and discussion.

Or you can assign a javascript function on the onclick event.

Example
-------------
using System.Text;

public void ButtonConfirmar1_Click (object sender, EventArgs e)
{

StringBuilder script = new StringBuilder();

script.AppendFormat("<script language='javascript'>");
script.AppendFormat("window.open('http://www.microsoft.com/',
'_new');");
script.AppendFormat("</script>");

Page.RegisterStartupScript("submitForm", script.ToString());
}

Bye!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top