Advertisements

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?

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?

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!