Hi,
I have one page developed in C# ASP.NET 2.0.
I am trying to open a new window from my code behind file.
My code is like below
string pageName = "EntityDescription.aspx?Ecode=" + "'" + entityCode + "'" + "& EDesc=" + "'" + entityDesc + "'";
String scriptString = "<script type='text/javascript'>" ;
scriptString += "window.onload = function(){ window.open('" + pageName + "' ,'test');}</script>";
ClientScript.RegisterClientScriptBlock(this.GetTyp e(), "clientScript", scriptString);
It is not giving any error.But it is not opening the new window for me.
Can someone help me on this.