protected void checkcf() { int chk = bus.checkcf(); if (chk == 1) { ScriptManager.RegisterStartupScript(this, GetType(), "displayalertmessage", "cfnot();", true); } else { } }
protected void lnkcf_Click(object sender, EventArgs e) { int r = bus.checkcf(); if (r == 1) // apply carry forward { int re = bus.cf(); { if (re == 1) { ScriptManager.RegisterStartupScript(this, GetType(), "displayalertmessage", "success();", true); } else { } } } else { ScriptManager.RegisterStartupScript(this, GetType(), "displayalertmessage", "error();", true); } }