public void FillWebsphereServersStatusGrid() { DataTable dt = new DataTable(); dt = VSWebBL.DashboardBL.WebsphereBL.Ins.GetWebsphereseversStatus(cellvalue); Websphereservergridview.DataSource = dt; Websphereservergridview.DataBind(); }
protected void Websphereservergridview_SelectionChanged(object sender, EventArgs e) { if (Websphereservergridview.Selection.Count > 0) { if (Session["UserFullName"] != null) { List <object> fieldValues = Websphereservergridview.GetSelectedFieldValues(new string[] { "redirectto" }); //7/22/2014 NS commented the line below, uncommented the following line - the page would auto redirect on each refresh //Response.Redirect(fieldValues[0].ToString()); //Mukund: VSPLUS-844, Page redirect on callback try { Response.Redirect(fieldValues[0].ToString()); //DevExpress.Web.ASPxWebControl.RedirectOnCallback(fieldValues[0].ToString()); //Context.ApplicationInstance.CompleteRequest();//Mukund, 05Aug14, VSPLUS-844:Page redirect on callback } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); //throw ex; } } // if (Websphereservergridview.Selection.Count > 0) // { // System.Collections.Generic.List<object> ServerID = Websphereservergridview.GetSelectedFieldValues("ServerID"); // System.Collections.Generic.List<object> ServerName = Websphereservergridview.GetSelectedFieldValues("ServerName"); // int srID = Convert.ToInt32(ServerID[0].ToString()); // string srName = ServerName[0].ToString(); // //DevExpress.Web.ASPxWebControl.RedirectOnCallback("WebSphereServerDetailsPage.aspx.aspx?ServerID=" + srID + "&ServerName=" + srName + ""); // //Context.ApplicationInstance.CompleteRequest(); // Response.Redirect("WebSphereServerDetailsPage.aspx?ServerName=" + srName + ""); //} } }