georgepatotk Posted March 25, 2004 Posted March 25, 2004 why is it doesn't work?? Image1.ImageUrl = Server.MapPath("C:\New Folder\Dot-pdf.jpg") is there anything i had missed out?? Quote George C.K. Low
wessamzeidan Posted March 25, 2004 Posted March 25, 2004 I think you should use a relative path with Server.MapPath Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
georgepatotk Posted March 25, 2004 Author Posted March 25, 2004 what does relative path means??? Quote George C.K. Low
wessamzeidan Posted March 25, 2004 Posted March 25, 2004 I mean, for example, if you have a folder called images in your web application folder, you just use Server.MapPath("images"), not Server.MapPath("c:\...\images").......get my point Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
georgepatotk Posted March 25, 2004 Author Posted March 25, 2004 It works perfectly with the files in Web Application Folder. However, the files are not stored in the Web Application Folder, It is stored in C drive instead. How do you think? Can I achieve it? Quote George C.K. Low
Administrators PlausiblyDamp Posted March 25, 2004 Administrators Posted March 25, 2004 The filies need to be addressable from the client - you are redirecting them to another part of your website. Either move the files to a sub folder of your site or make the folder they are in another virtual directory and use that path. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
georgepatotk Posted March 25, 2004 Author Posted March 25, 2004 ehm.... Thanks, make sense, i will try it out later. Quote George C.K. Low
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.