Link to home
Start Free TrialLog in
Avatar of mcs26
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\Visual Studio 2008\Projects\WorkPlease\WorkPlease"

The folder "Pics" which contain the images are in the following location.
"C:\Users\user\Documents\Visual Studio 2008\Projects\WorkPlease\WorkPlease\Pics"

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>";

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial