you are here: codestackercodes [RSS] → tag util [RSS]

PegarNomePaginaAtual

public static string PegarNomePaginaAtual()
{
        string path = System.Web.HttpContext.Current.Request.Url.AbsolutePath;
        System.IO.FileInfo info = new System.IO.FileInfo(path);
        return info.Name;
} 
Displaying 1 Code