protected void btnBuscar_Click(object sender, EventArgs e)
 {
     try
     {
         int id = int.Parse(txtIdMultimedia.Text);
         CapaNegocios.Multimedia obj = objDaoMul.selecionar(id);
         txtitulo.Text   = obj.titulo;
         txtFormato.Text = obj.formato;
         txtlink.Text    = obj.link;
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('usuario no valido')", true);
     }
 }
 protected void btnMultimediaAgregar_Click(object sender, EventArgs e)
 {
     try
     {
         CapaNegocios.Multimedia obj = new CapaNegocios.Multimedia();
         obj.idMultimedia = int.Parse(txtIdMultimedia.Text);
         obj.titulo       = txtitulo.Text;
         obj.formato      = txtFormato.Text;
         obj.link         = txtlink.Text;
         objDaoMul.insertarMultimedia(obj);
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert(Datos no validos)", true);
     }
     finally
     {
         // ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert(" + cad + ")", true);
         actualizarpagina();
     }
 }