Getting the filename of current editing web page?

Discussion in 'ASP .Net Web Controls' started by Laser Lu, Jun 3, 2004.

  1. Laser Lu

    Laser Lu Guest

    Is it possible to get the physical path and file name of the current editing aspx page at design time?
     
    Laser Lu, Jun 3, 2004
    #1
    1. Advertisements

  2. Are you working in VS.NET?

    If you select the .aspx file in Solution Explorer, you can look in the
    Properties window to find the Full Path property.

    Maybe you're talking about creating a macro to get that information?

    "Laser Lu" <> wrote in message
    news:...
    > Is it possible to get the physical path and file name of the current
    > editing aspx page at design time?
     
    Ken Cox [Microsoft MVP], Jun 3, 2004
    #2
    1. Advertisements

  3. Laser Lu

    Laser Lu Guest

    Actually, I want to get the path of current editting page in the code rendering a Web Control
    For example, I have relative path of a image file, but I want to get the information of that image before I render it in the control. In order to get its information, the whole absolute path of that image file is needed. So I have to get fiel path of current editing web page, and then append it with the relative path to get the absolute physical path of that image file
    Howt to do it

    ----- Ken Cox [Microsoft MVP] wrote: ----

    Are you working in VS.NET

    If you select the .aspx file in Solution Explorer, you can look in the
    Properties window to find the Full Path property

    Maybe you're talking about creating a macro to get that information

    "Laser Lu" <> wrote in message
    news:..
    > Is it possible to get the physical path and file name of the current
    > editing aspx page at design time?
     
    Laser Lu, Jun 3, 2004
    #3
  4. Laser Lu

    Laser Lu Guest

    Does anyone know that? Help, please

    ----- Laser Lu wrote: ----

    Actually, I want to get the path of current editting page in the code rendering a Web Control
    For example, I have relative path of a image file, but I want to get the information of that image before I render it in the control. In order to get its information, the whole absolute path of that image file is needed. So I have to get fiel path of current editing web page, and then append it with the relative path to get the absolute physical path of that image file
    Howt to do it

    ----- Ken Cox [Microsoft MVP] wrote: ----

    Are you working in VS.NET

    If you select the .aspx file in Solution Explorer, you can look in the
    Properties window to find the Full Path property

    Maybe you're talking about creating a macro to get that information

    "Laser Lu" <> wrote in message
    news:..
    > Is it possible to get the physical path and file name of the current
    > editing aspx page at design time?
     
    Laser Lu, Jun 4, 2004
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9l?=

    Extract filename from a filename typed by user

    =?Utf-8?B?Sm9l?=, Aug 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,205
    Travis Murray
    Aug 24, 2004
  2. Replies:
    1
    Views:
    1,951
    Roland de Ruiter
    Jun 15, 2006
  3. Ed
    Replies:
    10
    Views:
    50,377
    alok000707
    Jul 13, 2010
  4. Beauregard T. Shagnasty

    Re: filename.gif or filename.gif.jpg?

    Beauregard T. Shagnasty, May 30, 2008, in forum: HTML
    Replies:
    1
    Views:
    982
    Jonathan N. Little
    May 30, 2008
  5. David C

    Getting current page in Master Page

    David C, Nov 5, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    763
    Hillbilly
    Nov 5, 2008
  6. Replies:
    1
    Views:
    358
    Martin v. Löwis
    Jun 14, 2009
  7. chigger

    Get Filename of Current ASPX Page

    chigger, Mar 6, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    191
    chigger
    Mar 6, 2004
  8. Replies:
    3
    Views:
    582
Loading...