Ya se lo que falla pero no se como arreglarlo. El tema esta en que como uso el evento LnkAsunto_Click luego no sabe en que item esta. Si le pongo a piñon el intems(0) funciona pero claro siempre elige la misma noticia.
¿alguna idea?
Código:
Protected Sub LnkAsunto_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Try
ViewState("Visor") = Request.QueryString("Visor")
If ViewState("Visor") <> 1 Then
Dim Comunidad As String
Comunidad = Util.Usuario.IdComunidad
ViewState("Id") = Comunidad
Else
ViewState("Id") = Request.QueryString("Id")
End If
Dim NoticiaId As String
Dim lbl As Label = CType(DataList1.Items(0).FindControl("lblId"), Label)
NoticiaId = lbl.Text
Response.Redirect("~/Formularios/GestorContenidosNoticiasEdit.aspx?Id=" + NoticiaId + "&Comu=" + ViewState("Id"))
Catch ex As Exception
End Try
End Sub