Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<a "<%= Application["ImgSection"].ToString() %>"/ACR Total TPDoc Volume.jpg" rel="facebox" data-tooltip="sticky16">ACR Total TPDoc</a>




Hi All,

Can anyone please tell me how to change the
path dynamically.
Please note I just need to change the folder path and the file name will be appended to this path.

i.e ;/ACR Total TPDoc Volume.jpg should be appended to "<%= Application["ImgSection"].ToString() %>"

Thank you.
Kishor
Posted

1 solution

Just append those two strings.

<a href="<%= Application["ImgSection"].ToString() + "/ACR Total TPDoc Volume.jpg" %>" >ACR Total TPDoc</a>


Consider the ImgSection in Codeproject.com
C#
Application["ImgSection"] = "http://www.codeproject.com/images";


Then your link will looks like below

ACR Total TPDoc Image (Look at the status bar for the sample URL while mouse over this link)
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900