Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/01/2012, 17:26
odilon
 
Fecha de Ingreso: septiembre-2003
Ubicación: Cancun mexico
Mensajes: 50
Antigüedad: 20 años, 8 meses
Puntos: 0
Pregunta poner valores en textarea

Hola que tal soy completamente nuevo en ASPX, tengo un formulario que debe de recibir la información de una base de datos para poder ser editada.
Se que en el archivo aspx.vb declaro mis variables y lo que hago con la base y de ahi debo de pasar el valor de la consulta a el textarea.

ejemplo de mi consulta

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
SQL_Sicoss = New SqlClient.SqlConnection(Session("ConnectionNET"))
Dim SQLA_Documento As New SqlClient.SqlDataAdapter("Select * From Documento Where Documento_ID = @DocID", SQL_Sicoss)
Dim dbDoc As New DataSet

DOCID = al id del documento a editar.



If DocID < 0 Then
textarea.Content = (" <br /> " _
& " <br /> " _
& " &nbsp; <br /> " _
& " <div style=""text-align: center""><span style=""font-weight: bold"" class=""style2"">*** Elabore su Documento aquí ***</span></div> ")

txt_Titulo.Visible = True
txt_descripcion.Visible = True
Else
EN ESTA LINEA DEBERIA DE PONER LA INSTRUCCION PARA EL VALOR DEL TEXTAREA
txt_Titulo.Visible = False
txt_descripcion.Visible = False
End If