Posts

Showing posts with the label UpdatePanel

Show Crystal report reportviewer from asp.net server side button click using ScriptManager.RegisterStartupScript inside update panel

Method 1:   public void showReportModified(string pageUrl, string param, System.Type cType, Page oPage, Control ctrl)         {             ScriptManager.RegisterStartupScript(ctrl, typeof(string), "redirect", "window.open('" + pageUrl + param + "');", true);         } Method 2:       public void showReport(string pageUrl, string param, System.Type cType, Page oPage)         {             string url = ResolveClientUrl(pageUrl) + param;             //for (int i = 0; i < param.Length; i++)             //{             //    url += pageUrl + Server.UrlEncode(param[i]);             //}             ClientScriptManager crScript = oPage.ClientScript;       ...