L lichaoir Nov 1, 2007 #1 How to show a pop-up window on the page? Thanks for your answer and discussion.
N northof40 Nov 1, 2007 #2 How to show a pop-up window on the page? Thanks for your answer and discussion. Click to expand... 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
How to show a pop-up window on the page? Thanks for your answer and discussion. Click to expand... 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 Nov 1, 2007 #4 How to show a pop-up window on the page? Thanks for your answer and discussion. Click to expand... 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!
How to show a pop-up window on the page? Thanks for your answer and discussion. Click to expand... 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!