protected void btnSalvar_Click(object sender, EventArgs e)
 {
     try
     {
         if (txtTipoExame.Text != "")
         {
             ExamesComplementares Obj = new ExamesComplementares();
             Obj.id        = Convert.ToInt32(Request.QueryString["id"]);
             Obj.Descricao = txtTipoExame.Text;
             ExamesComplementaresDAL ObjDAL = new ExamesComplementaresDAL();
             ObjDAL.InsertUpdate(Obj);
             Response.Redirect("default.aspx");
         }
         else
         {
             Page.ClientScript.RegisterClientScriptBlock(GetType(), "Mensage", "alert('Campo Obrigatório')", true);
         }
     }
     catch (Exception ex)
     {
         Response.Write(ex);
     }
 }
    protected void btnSalvar_Click(object sender, EventArgs e)
    {
        try
        {
        if (txtTipoExame.Text != "")
        {

            ExamesComplementares Obj = new ExamesComplementares();
            Obj.id = Convert.ToInt32(Request.QueryString["id"]);
            Obj.Descricao = txtTipoExame.Text;
            ExamesComplementaresDAL ObjDAL = new ExamesComplementaresDAL();
            ObjDAL.InsertUpdate(Obj);
            Response.Redirect("default.aspx");
        }
        else
        {
            Page.ClientScript.RegisterClientScriptBlock(GetType(), "Mensage", "alert('Campo Obrigatório')", true);
        }
        }
        catch (Exception ex)
        {
            Response.Write(ex);
        }
    }