hi
i m create a website in asp.net 3.5 and upload on the webspaces.
but i m able to upload the file but i m not downlod the file
i try my many codes to download file from my website .
and get one error "This is not a irtule path "
i m use server.mathpath but this is return whole path which contains the hosting providing path with drive path . this is not use ful for me
please help me
please help me in code
Loading

ArshadPosted Jun 22, 2010, 12:23 AM
Response.ContentType = "image/jpeg";
Response.AppendHeader("Content-Disposition","attachment; filename=arshad.jpg");
Response.TransmitFile( Server.MapPath("~/images/arshad.jpg") );
Response.End();
Regards,
Arshad
CrishPosted Jun 21, 2010, 1:37 AM
thanks
Don't forget to Mark Do you like this Answer
that solved your problem!