Hello again. It seems I only have problems...well, that's true
My last one, from a aspx page the users clicks on a link and a new window opens containing a form. This form has some DropDownLists and some other controls, and I have to populate these lists. Some of them can (and should) be populated on Page Load, but some others depends on the value from some of the populated_on_load DropDownLists.
This should not be a problem. I set the OnSelectedIndexChange event of the "prepopulated" list to wire the event to a sub, and from the sub, I populate the rest. Simple, but it is not working. And i don't know why.
The code from the server side:
The HTML code in the next post, I have some weird errors posting.....
My last one, from a aspx page the users clicks on a link and a new window opens containing a form. This form has some DropDownLists and some other controls, and I have to populate these lists. Some of them can (and should) be populated on Page Load, but some others depends on the value from some of the populated_on_load DropDownLists.
This should not be a problem. I set the OnSelectedIndexChange event of the "prepopulated" list to wire the event to a sub, and from the sub, I populate the rest. Simple, but it is not working. And i don't know why.
The code from the server side:
Visual Basic:
public empleado as String
private query As String
Sub Page_Load(sender As Object, e As EventArgs)
Dim Conexion As OleDbConnection = New OleDbConnection(strConexion)
Dim i As Integer
If Not IsPostBack Then
empleado = Request.QueryString("cod")
If empleado <> "" Then
usuarioApertura.Text = empleado
'Cargamos las entidades
query = "SELECT CodigoEntidad FROM TCodigosEntidades"
Dim da As New OleDbDataAdapter(query, Conexion)
Dim ds As New DataSet
da.Fill(ds, "CodigoEntidad")
'Asociamos los datos necesarios al DataGrid
With codigoEntidad
.DataTextField = "CodigoEntidad"
.DataValueField = "CodigoEntidad"
.DataSource = ds
.DataBind()
End With
End If
End If
End Sub
Sub CargarTareas(sender As Object, e As System.EventArgs)
Dim MsgBoxText As String = "Populating DropdownLists"
MsgBox(MsgBoxText)
End Sub
The HTML code in the next post, I have some weird errors posting.....