public void loadIntRate(int id)
 {
     try
     {
         adminTableAdapters.GetInterestRateTypesTableAdapter IntRateType = new adminTableAdapters.GetInterestRateTypesTableAdapter();
         admin.GetInterestRateTypesDataTable tbl = IntRateType.GetInterestRatesDetail(id);
         if (tbl.Rows.Count > 0)
         {
             txtDescription.Value = tbl[0].datDescription.ToString();
             this.editskip.Value  = "2";
         }
     }
     catch (Exception ex) { }
 }
 public void loadIntRate(int id)
 {
     try
     {
         adminTableAdapters.GetInterestRateTypesTableAdapter IntRateType = new adminTableAdapters.GetInterestRateTypesTableAdapter();
         admin.GetInterestRateTypesDataTable tbl = IntRateType.GetInterestRatesDetail(id);
         if (tbl.Rows.Count > 0)
         {
             txtDescription.Value = tbl[0].datDescription.ToString();
             this.editskip.Value = "2";
         }
     }
     catch (Exception ex) { }
     }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        adminTableAdapters.GetInterestRateTypesTableAdapter IntRateType = new adminTableAdapters.GetInterestRateTypesTableAdapter();
        if (!(type == "update"))
        {
            IntRateType.InsertInterestRateDetails(txtDescription.Value);
        }
        else if (type == "update")
        {
            IntRateType.UpdateInterestRateTypes(txtDescription.Value,
                                                id);
        }

        Page.Response.Redirect(util.RemoveQueryStringByKey(HttpContext.Current.Request.Url.AbsoluteUri, "itedit"));
    }
 protected void btnSave_Click(object sender, EventArgs e)
 {
     adminTableAdapters.GetInterestRateTypesTableAdapter IntRateType = new adminTableAdapters.GetInterestRateTypesTableAdapter();
     if (!(type == "update"))
     {
         IntRateType.InsertInterestRateDetails(txtDescription.Value);
     }
     else if(type=="update")
     {
         IntRateType.UpdateInterestRateTypes(txtDescription.Value,
                                             id);
    }
    
     Page.Response.Redirect(util.RemoveQueryStringByKey(HttpContext.Current.Request.Url.AbsoluteUri, "itedit"));
 }