protected void btnsubmimCon_Click(object sender, EventArgs e) { //if (btnsubmit.Text == "Yes") //{ Session["lblmsg"] = null; Cls_Data_Auth auth = new Cls_Data_Auth(); string Ip = auth.GetIPAddress(HttpContext.Current.Request); Hashtable ht = new Hashtable(); string loggedInUser; if (Session["username"] != null) { loggedInUser = Session["username"].ToString(); } else { Session.Abandon(); Response.Redirect("~/Login.aspx"); return; } ht.Add("User", loggedInUser); ht.Add("lcocode", username); if (Session["status"] == "1") { ht.Add("flag", "N"); } else if (Session["status"] == "0") { ht.Add("flag", "Y"); } Cls_BLL_TransHwayGlobalAutoRenew obj = new Cls_BLL_TransHwayGlobalAutoRenew(); string response = obj.statuschange(ht); if (response == "ex_occured") { Response.Redirect("~/ErrorPage.aspx"); return; } string[] strrnw = new string[4]; strrnw = response.Split(','); lblmsg.Text = strrnw[1]; if (response.StartsWith("9999")) { lblmsg.Text = response.Split(',')[1]; } else { lblmsg.Text = response; } btncancel.Visible = false; btnsubmit.Visible = false; btnclose.Visible = true; popglobalmsgbox.Show(); }
protected void BtnImgGlobalRenewal_Click(object sender, ImageClickEventArgs e) { try { DataTable responseStr = new DataTable(); if (username != "") { string customerId = Request.Form[username]; string customerName = Request.Form[username]; Cls_BLL_TransHwayGlobalAutoRenew obj = new Cls_BLL_TransHwayGlobalAutoRenew(); string operator_id = ""; string category_id = ""; string status = ""; if (Session["operator_id"] != null && Session["category"] != null) { operator_id = Convert.ToString(Session["operator_id"]); category_id = Convert.ToString(Session["category"]); } responseStr = obj.LcoPayment(username); if (responseStr.Rows.Count != 0) { lblGlobalmsg.Text = responseStr.Rows[0]["var_lcomst_code"].ToString().Trim(); Session["lcoCodeR"] = lblGlobalmsg.Text.Trim(); lblGlobalmsg.Text = responseStr.Rows[0]["var_lcomst_name"].ToString().Trim(); if (responseStr.Rows[0]["var_lcoautorenew_flag"].ToString().Trim() == "N") { status = "0"; Session["status"] = status.ToString(); lblmsg.Text = "The Global Renewal is Disable..! Do You Want To Enable it? "; } else if (responseStr.Rows[0]["var_lcoautorenew_flag"].ToString().Trim() == "Y") { status = "1"; Session["status"] = status.ToString(); lblmsg.Text = "The Global Renewal is Enable..! Do You Want To Disable it?"; } } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "alertMessage", "alert('No Such LCO Found');", true); popMsgBox.Show(); return; } btnclose.Visible = false; btncancel.Visible = true; btnsubmit.Visible = false; btnconfirm.Visible = true; btncancel.Value = "No"; popglobalmsgbox.Show(); } else { if (responseStr.Rows[0]["var_lcoautorenew_flag"].ToString().Trim() == "N") { } else { } } } catch (Exception ex) { } }