protected void SaveState(object sender, EventArgs e)
 {
     try
     {
         objML_Masters.ID          = txtStateCode.Text != "" ? txtStateCode.Text : null;
         objML_Masters.StateName   = txtState.Text != "" ? txtState.Text : null;
         objML_Masters.ProjectName = "Hotel";
         objML_Masters.CreatedBy   = Session["UserName"].ToString();
         objML_Masters.ModifyBy    = Session["UserName"].ToString();
         int x = objBL_Masters.BL_SaveStateMaster(objML_Masters);
         if (x == 1)
         {
             ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Data Saved !')", true);
             StateClear(sender, e);
         }
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('" + ex.Message.ToString() + "')", true);
     }
 }