protected void btnDeploy_Click(object sender, EventArgs e) { Unicast unicast = new Unicast(); Session["direction"] = "push"; lblTitle.Text = "Deploy The Selected Host?"; gvConfirm.DataSource = unicast.Confirm(host.ID); gvConfirm.DataBind(); ClientScript.RegisterStartupScript(this.GetType(), "modalscript", "$(function() { var menuTop = document.getElementById('confirmbox'),body = document.body;classie.toggle(menuTop, 'confirm-box-outer-open'); });", true); }
protected void btnUpload_Click(object sender, EventArgs e) { Unicast unicast = new Unicast(); GridViewRow gvRow = (GridViewRow)(sender as Control).Parent.Parent; string hostID = gvHosts.DataKeys[gvRow.RowIndex].Value.ToString(); Session["hostID"] = hostID; Session["direction"] = "pull"; lblTitle.Text = "Upload The Selected Host?"; gvConfirm.DataSource = unicast.Confirm(hostID); gvConfirm.DataBind(); ClientScript.RegisterStartupScript(this.GetType(), "modalscript", "$(function() { var menuTop = document.getElementById('confirmbox'),body = document.body;classie.toggle(menuTop, 'confirm-box-outer-open'); });;", true); }
protected void btnUpload_Click(object sender, EventArgs e) { Unicast unicast = new Unicast(); Session["direction"] = "pull"; lblTitle.Text = "Upload The Selected Host?"; gvConfirm.DataSource = unicast.Confirm(host.ID); gvConfirm.DataBind(); ClientScript.RegisterStartupScript(this.GetType(), "modalscript", "$(function() { var menuTop = document.getElementById('confirmbox'),body = document.body;classie.toggle(menuTop, 'confirm-box-outer-open'); });;", true); }