Re: Get aspx File Name

From: Rob Meade (robb.meade_at_NO-SPAM.kingswoodweb.net)
Date: 04/26/04


Date: Mon, 26 Apr 2004 16:40:20 GMT


"Jeff" wrote ...

> I need to determine, at runtime, the page name of the currently requested
> aspx page.
> Page.ToString(), returns sumething like "ASP.MyFile_aspx". What I'd prefer
> is to get the actual file name "MyFile.aspx".

In vanilla ASP you could have used, Request.ServerVariables("SCRIPT_NAME") -
but I'm sure someone here will have a better way to resolve it in .net :o)

Regards

Rob



Relevant Pages

  • Re: SPS2003 Alerts
    ... Managed to resolve this issue ... You need to apply to Microsoft for the Windows 2003 Hotfix 834859. ... Regards ... Rob ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Windows Mail Problem
    ... Broadband internet access ... I am trying to resolve a problem with Outlook Express with regards to ...
    (microsoft.public.windowsxp.general)
  • Re: Lost my Help Display
    ... Rob ... > MVP FAQ site: http://mvps.org/ ... >> Both the Task Bar and Manager indicate it's running but it doesn't ... >> Regards; ...
    (microsoft.public.office.misc)
  • Re: AJAX - AutoCompleteExtender ASP.Net 2.0 (Page Method vs. Web S
    ... Best regards, ... In aspx site: ... you'll have to specify the [ScriptMethod] attribute in addition to the ... I want to put the web service code into a page ...
    (microsoft.public.dotnet.general)
  • Re: Wd 03-Date formats from Excel changed
    ... Rob ... > topic of the "Mail merge in Word 2002" section of fellow MVP Cindy ... >> Source file is an Excel WkBk. ... >> Regards; ...
    (microsoft.public.word.mailmerge.fields)