Open a new browser in Async Callback
Use the following code in Async Callback to open a new Browser
string str_script = "window.open('mypage.aspx?_par2=0&_par1=" + parameters + "',null,'width=510,height=500,top=250,left=250','false');";
StringBuilder oStringBuilder = new StringBuilder();
oStringBuilder .Append(str_script);
ScriptManager.RegisterClientScriptBlock(this.UpdatePanel, typeof(UpdatePanel), "OpenNewWindow", oStringBuilder.ToString(), true);
string str_script = "window.open('mypage.aspx?_par2=0&_par1=" + parameters + "',null,'width=510,height=500,top=250,left=250','false');";
StringBuilder oStringBuilder = new StringBuilder();
oStringBuilder .Append(str_script);
ScriptManager.RegisterClientScriptBlock(this.UpdatePanel, typeof(UpdatePanel), "OpenNewWindow", oStringBuilder.ToString(), true);
Comments