Ejemplo n.º 1
0
        private void btnSave_ServerClick(object sender, EventArgs e)
        {
            ArrayList categories         = new ArrayList();
            ArrayList incidentCategories = new ArrayList();

            CollectSelectedValues(grdCategories, categories);
            CollectSelectedValues(grdIncidentCategories, incidentCategories);

            Issue2.UpdateCategories(IncidentId, categories, incidentCategories);

            Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(),
                                                    "try {window.opener.top.frames['right'].location.href='../Incidents/IncidentView.aspx?IncidentId=" + IncidentId + "';}" +
                                                    "catch (e){} window.close();", true);
        }