示例#1
0
 protected void ClearData()
 {
     TxtPrinciAmount.Text = "";
     TxtROI.Text          = "";
     TxtPeriod.Text       = "";
     TxtTotalIntAmt.Text  = "";
     TxtTotalMatAmt.Text  = "";
     TxtEffectYeild.Text  = "";
     TxtPrinciAmount.Focus();
     //RdbCompoundHY.Checked = false;
     //RdbCompoundQ.Checked = false;
     //RdbCompoundM.Checked = false;
     //RdbCompoundQ.Focus();
 }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             if (Session["UserName"] == null)
             {
                 Response.Redirect("FrmLogin.aspx");
             }
             TxtTotalIntAmt.Enabled = false;
             TxtTotalMatAmt.Enabled = false;
             TxtEffectYeild.Enabled = false;
             TxtEffectDate.Text     = Session["EntryDate"].ToString();
             TxtPrinciAmount.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }