Re: How to show a pop-up window on the page?
by lichaoir on 11/1/2007 6:55:00 AM
Thanks!
Re: How to show a pop-up window on the page?
by Maximiliano on 10/31/2007 11:05:00 PM
On 31 oct, 22:53, lichaoir <licha...@gmail.com> wrote:
> 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!