protected void InstanceInfo_Edit(object sender, DataGridCommandEventArgs e) { int index = e.Item.ItemIndex; if (frames) { Response.Write( ClientScripts.ReloadExplorerAndViewPanes("editinstanceinfo.aspx?frames=true&key=" + parent.BindingKey + "&index=" + index, parent.BindingKey + ":" + index)); Response.End(); } else { Response.Redirect("editinstanceinfo.aspx?frames=false&key=" + parent.BindingKey + "&index=" + index); Response.End(); } }
protected void Service_Edit(object sender, DataGridCommandEventArgs e) { string key = bindableServices[e.Item.ItemIndex].ServiceKey; if (frames) { Response.Write( ClientScripts.ReloadExplorerAndViewPanes("editservice.aspx?frames=true&key=" + key, key)); Response.End(); } else { Response.Redirect("editservice.aspx?frames=false&key=" + key); Response.End(); } }
protected void TModel_Edit(object sender, DataGridCommandEventArgs e) { string key = tModelInfos[e.Item.ItemIndex].TModelKey; if (frames) { // // Reload explorer and view panes. // Response.Write( ClientScripts.ReloadExplorerAndViewPanes("editmodel.aspx?frames=true&key=" + key, key)); } else { Response.Redirect("editmodel.aspx?frames=false&key=" + key); } }
protected void ServiceProjection_View(object sender, DataGridCommandEventArgs e) { string key = bindableServiceProjections[e.Item.ItemIndex].ServiceKey; string root = ((Request.ApplicationPath == "/")?"":Request.ApplicationPath); if (frames) { string explkey = "sp:" + bindableServiceProjections[e.Item.ItemIndex].BusinessKey + ":" + key; Response.Write( ClientScripts.ReloadExplorerAndViewPanes(root + "/details/servicedetail.aspx?projectionContext=edit&frames=true&projectionKey=" + parentKey + "&key=" + key, explkey)); Response.End(); } else { Response.Redirect("editservice.aspx?frames=false&key=" + key); Response.End(); } }