Пример #1
0
 protected void btnnew_Click(object sender, EventArgs e)
 {
     Whitfieldcore wc = new Whitfieldcore();
     if (Page.IsValid)
     {
         Boolean IsInsertSuccess = false;
         IsInsertSuccess = wc.ManageCompetition(
              Convert.ToInt32(ViewState["_compeID"].ToString()),
              txtclientname.Text.Trim(),
              txtWeb.Text.Trim(),
              0,
              txtNotes.Text.Trim(),
              Convert.ToInt32(ddlCity.SelectedItem.Value),
              Convert.ToInt32(ddlState.SelectedItem.Value),
              txtlaborRate.Text.Trim(),
              txtOverHead.Text.Trim(),
              ""
             );
         if (IsInsertSuccess)
         {
             lblMsg.Text = "Competition is Successfully saved";
         }
     }
 }