mcs26
asked on
ASP.Net Page Adding image - cannot use a leading .. to exit above the top directory
Hi,
I have no ASP.Net knowledge. But I am loading a chart using C# sharp as my script language. The chart loads up fine however I am trying to add an image to the chart using the code below but when the page loads up i get the following error message "Cannot use a leading .. to exit above the top directory"
The Default.aspx file and "bin" & "obj" folders are in the location below.
"C:\Users\user\Documents\V isual Studio 2008\Projects\WorkPlease\W orkPlease"
The folder "Pics" which contain the images are in the following location.
"C:\Users\user\Documents\V isual Studio 2008\Projects\WorkPlease\W orkPlease\ Pics"
Thanks for any help
I have no ASP.Net knowledge. But I am loading a chart using C# sharp as my script language. The chart loads up fine however I am trying to add an image to the chart using the code below but when the page loads up i get the following error message "Cannot use a leading .. to exit above the top directory"
The Default.aspx file and "bin" & "obj" folders are in the location below.
"C:\Users\user\Documents\V
The folder "Pics" which contain the images are in the following location.
"C:\Users\user\Documents\V
Thanks for any help
SeriesCollection mySC = GetPriceDataFX(dtFrom,dtTo);
mySC[0][100].Annotation = new Annotation();
mySC[0][100].Annotation.Label.Text = "<img:../../Pics/Green.jpg>";
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.