Imports System.Net.Http Imports System.Net.Http.Headers Public Class trienios Inherits System.Web.UI.Page Protected Async Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim token As String = Session("token") Dim client As New HttpClient() client.DefaultRequestHeaders.Authorization = New AuthenticationHeaderValue("Bearer", token) client.BaseAddress = New Uri(ConfigurationManager.AppSettings("SwaggerVB")) Dim idPers = Session("persona").Personas(0).idPersona Dim url As String = "/api/TRIENIOS/GetWithIncludes/" & idPers Dim puestosItems = Await UtilAntifraude.ObtenerObjeto(Of List(Of ClasesDatosAdmin.TRIENIOS))(client, url) Dim htmlTabla = "" If (puestosItems.Count > 0) Then htmlTabla += "" + "" + "" + "" For Each itm As ClasesDatosAdmin.TRIENIOS In puestosItems htmlTabla += "" + "" + "" + "" Next htmlTabla += "
GrupoTrienios otras administracionesTrienios oficina
" + itm.IDGRUPONavigation.DESCRIPCION + "" + itm.TOA.ToString + "" + itm.TC.ToString + "
" Else htmlTabla += "

No se han encontrado resultados

" End If divTabla.InnerHtml = htmlTabla End Sub End Class