/// <summary>
/// MapPathUrlDinamico
/// </summary>
/// <param name="url">ejemplo:Visor/Informes.aspx</param>
/// <returns>URL COMPLETA DINAMICA</returns>
public string MapPathUrlDinamico(string url)
{
var urlCompleta = HttpContext.Current.Request.Url.OriginalString.Substring(0, HttpContext.Current.Request.Url.OriginalString.IndexOf("Paginas")) + url;
return urlCompleta;
}
//NOTA:
var urlCompleta = HttpContext.Current.Request.Url.OriginalString.Substring(0, HttpContext.Current.Request.Url.OriginalString.IndexOf("Paginas"))
//Obtiene la URL desde "PAGINAS" hacia atras.-
/// </summary>
/// <param name="url">ejemplo:Visor/Informes.aspx</param>
/// <returns>URL COMPLETA DINAMICA</returns>
public string MapPathUrlDinamico(string url)
{
var urlCompleta = HttpContext.Current.Request.Url.OriginalString.Substring(0, HttpContext.Current.Request.Url.OriginalString.IndexOf("Paginas")) + url;
return urlCompleta;
}
//NOTA:
var urlCompleta = HttpContext.Current.Request.Url.OriginalString.Substring(0, HttpContext.Current.Request.Url.OriginalString.IndexOf("Paginas"))
//Obtiene la URL desde "PAGINAS" hacia atras.-
No hay comentarios:
Publicar un comentario