Hi,
I tried calling a RegisterStartupScript from c#, my code looks as bellow
string strRpt = "<script language='JavaScript'> \r " +
"function OpenReports() { \r " +
"window.open('http://localhost/webapplication1_vintest/webform5.aspx','','dialogHeight: 515px; dialogWidth: 630px;edge: Sunken;directories=no;center: Yes;help: no;scrollbars=no; resizable: No; status: no;toolbar=no;menubar=no;location=no; modal=yes;titlebar=no;'); \r" +
"} \r" +
"</script>";
if(!this.IsStartupScriptRegistered("OpenScript"))
{
this.RegisterStartupScript("OpenScript", strRpt);
}
when I tried to execute the new window is not getting opened.
Can anyone suggest me, what went wong??