Open popup window using c#

Posted by Santosh0683 under ASP.NET category on | Points: 40 | Views : 13688
string popup = "<script language='javascript' ID='script1'>" + "'../frmEmpDetail.aspx?data=" + HttpUtility.UrlEncode(qstr.ToString()) + "','newwindow', 'top=0,left=50,width=900,height=650,dependant = no, alwaysRaised = no, menubar=yes, resizable=no ,scrollbars=yes, toolbar=no,status=no')" + "</script>";
ScriptManager.RegisterStartupScript((Page)HttpContext.Current.Handler, typeof(Page), "script1", popup, false);

Comments or Responses

Posted by: SheoNarayan on: 8/26/2010 Level:HonoraryPlatinum | Status: [Administrator] | Points: 10
Please explain the code snippet a bit so that its easy for readers to understand.


Login to post response