コード例 #1
0
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         objAdmin.ConnectionName      = txtConnectionName.Text;
         objAdmin.Description         = txtDescription.Text;
         objAdmin.NewConnectionCharge = Convert.ToDecimal(txtNewPrice.Text);
         objAdmin.RefillCharge        = Convert.ToDecimal(txtRefill.Text);
         objAdmin.ConnectionTypeId    = Convert.ToInt32(ViewState["TypeId"]);
         string s = objAdmin.UpdateConnection();
         lblMsg.Text = s;
     }
     catch (Exception ex)
     {
         lblMsg.Text = ex.Message.ToString();
     }
 }