protected void gvResult_ItemCommand(object source, DataGridCommandEventArgs e) { if (e.CommandSource is Button) { if (e.CommandName == "Delete") { int Id = (int)gvResult.DataKeys[e.Item.ItemIndex]; int cnt = PE_DAL.DeleteVK_LP(Id, e.Item.Cells[2].Text, System.Convert.ToInt32(this.IsVK)); BindDataVK_LP(this.IsVK); } else if (e.CommandName == "edit") { int Id = (int)gvResult.DataKeys[e.Item.ItemIndex]; string interface_ = e.Item.Cells[2].Text; if (PubEntAdminManager.TamperProof) { PubEntAdminManager.RedirectEncodedURLWithQS(ChildPage, PubEntAdminManager.strPubID + "=" + Id.ToString() + "&" + PubEntAdminManager.strInterface + "=" + this.WhatInt(interface_) + "&" + PubEntAdminManager.strVK_LPType + "=" + (this.blnIsVK ? PubEntAdminManager.strVKType : PubEntAdminManager.strLPType)); } else { Response.Redirect(ChildPage + "?" + PubEntAdminManager.strPubID + "=" + Id.ToString() + "&" + PubEntAdminManager.strInterface + "=" + this.WhatInt(interface_) + "&" + PubEntAdminManager.strVK_LPType + "=" + (this.blnIsVK ? PubEntAdminManager.strVKType : PubEntAdminManager.strLPType), true); } } } }