Hey All,
I have following directory structure on server
C:\data\inetpub \wwwroot\MyApp
C:\data\inetpub \wwwroot\Images
My App is my application and I have MyPage.aspx there. In that MyPage I want to access images from C:\data\inetpub \wwwroot\Images folder.
I tried Server.Mappath( ) in several ways but it throws error.
string filename = Server.MapPath( "~/Images/" + DateTime.Now.Ye ar.ToString() + "/Q" + currentquater.T ext.Trim());
Any Idea?
Thanks in advance
I have following directory structure on server
C:\data\inetpub \wwwroot\MyApp
C:\data\inetpub \wwwroot\Images
My App is my application and I have MyPage.aspx there. In that MyPage I want to access images from C:\data\inetpub \wwwroot\Images folder.
I tried Server.Mappath( ) in several ways but it throws error.
string filename = Server.MapPath( "~/Images/" + DateTime.Now.Ye ar.ToString() + "/Q" + currentquater.T ext.Trim());
Any Idea?
Thanks in advance
Comment