protected void btnComment_Click(object sender, EventArgs e) { SQLTrans.LoginData ldata = ((SQLTrans.LoginData)Session["userdata"]); try { if (ldata == null) { output.Text = MSGNOGRANT; return; } if (txtComment.Text.Trim().Length < 5) { output.Text = "No hay nada que comentar, minimo 5 letras!"; return; } client.sp_AgregarComentario(ldata, Request["id"], txtComment.Text); Response.Redirect(Request.RawUrl); } catch { output.Text = "Ocurrio un error en la transaccion!"; } }