protected void btnAdd_Click(object sender, EventArgs e) { string sSelectedRuleIDs = this.hdnSelectedRuleIDs.Value; // update Template_Rules RuleManager = new Template_Rules(); RuleManager.AddGlobalRules(sSelectedRuleIDs); PageCommon.WriteJsEnd(this, "Added global rule successfully.", "window.parent.location.href=window.parent.location.href;"); }