protected void effective_OnClick(object sender, EventArgs e) { var effectiveManifest = new BLL.Workflows.EffectiveMunkiTemplate().Computer(Computer.Id); Response.Write(Encoding.UTF8.GetString(effectiveManifest.ToArray())); Response.ContentType = "text/plain"; Response.End(); }
protected void effective_OnClick(object sender, EventArgs e) { var effectiveManifest = new BLL.Workflows.EffectiveMunkiTemplate().Group(Group.Id); Response.Write(Encoding.UTF8.GetString(effectiveManifest.ToArray())); Response.ContentType = "text/plain"; Response.End(); }
protected void btnPreview_OnClick(object sender, EventArgs e) { var control = sender as Control; if (control != null) { var gvRow = (GridViewRow) control.Parent.Parent; var dataKey = gvManifestTemplates.DataKeys[gvRow.RowIndex]; if (dataKey != null) { var effectiveManifest = new BLL.Workflows.EffectiveMunkiTemplate().MunkiTemplate(Convert.ToInt32(dataKey.Value)); Response.Write(Encoding.UTF8.GetString(effectiveManifest.ToArray())); Response.ContentType = "text/plain"; Response.End(); } } }
protected void btnPreview_OnClick(object sender, EventArgs e) { var control = sender as Control; if (control != null) { var gvRow = (GridViewRow)control.Parent.Parent; var dataKey = gvManifestTemplates.DataKeys[gvRow.RowIndex]; if (dataKey != null) { var effectiveManifest = new BLL.Workflows.EffectiveMunkiTemplate().MunkiTemplate(Convert.ToInt32(dataKey.Value)); Response.Write(Encoding.UTF8.GetString(effectiveManifest.ToArray())); Response.ContentType = "text/plain"; Response.End(); } } }