Click here to Skip to main content
15,886,137 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionError Uploading! please help. Pin
Junior Boy2-Jul-07 23:08
Junior Boy2-Jul-07 23:08 
AnswerRe: Error Uploading! please help. Pin
Pete O'Hanlon2-Jul-07 23:17
mvePete O'Hanlon2-Jul-07 23:17 
AnswerRe: Error Uploading! please help. Pin
Sandeep Akhare2-Jul-07 23:32
Sandeep Akhare2-Jul-07 23:32 
GeneralRe: Error Uploading! please help. Pin
Junior Boy2-Jul-07 23:49
Junior Boy2-Jul-07 23:49 
GeneralRe: Error Uploading! please help. Pin
Sandeep Akhare2-Jul-07 23:56
Sandeep Akhare2-Jul-07 23:56 
GeneralRe: Error Uploading! please help. Pin
Pete O'Hanlon3-Jul-07 0:15
mvePete O'Hanlon3-Jul-07 0:15 
GeneralRe: Error Uploading! please help. Pin
Junior Boy3-Jul-07 0:35
Junior Boy3-Jul-07 0:35 
GeneralRe: Error Uploading! please help. Pin
Junior Boy3-Jul-07 18:03
Junior Boy3-Jul-07 18:03 
I have been trying to upload all last nightFrown | :(
please see this code:
================================================================================
string fileName = Server.MapPath("~/471463016/TextFiles/");

if(Directory.Exists(fileName))
Response.Write("Existed");
else
{
Directory.CreateDirectory(fileName);
Response.Write("Not Exist");
}
================================================================================
It shows me message: Existed
And then please see code:
================================================================================
Response.Write("Path = "+fileName);

try {
FileUpload.PostedFile.SaveAs(fileName+"mydata.txt");
}
catch(Execption ex){
Response.Write("
Error: " + ex.Message);
}

================================================================================
The result :
Path = D:\webhost\471463016\TextFiles\
Error: Access to the path 'D:\webhost\471463016\TextFiles\mydata.txt' is denied.

I don't really understand why I have the error when it show me the folder path is existed.
Believe me, I have been try so hard as i have never tried, I really need help because
I have deadline on July 7 Saturday to send my school project,sir.
Again, anyhelp will be really appreciated.
My email : big_kh@hotmail.com

Thank you million,


junior boy

GeneralRe: Error Uploading! please help. Pin
Pete O'Hanlon4-Jul-07 8:53
mvePete O'Hanlon4-Jul-07 8:53 
GeneralRe: Error Uploading! please help. [modified] Pin
Junior Boy4-Jul-07 18:15
Junior Boy4-Jul-07 18:15 
Questionurgent need soln abt crystal report Pin
Moheeb U.2-Jul-07 23:07
Moheeb U.2-Jul-07 23:07 
AnswerThe rules Pin
leckey3-Jul-07 3:21
leckey3-Jul-07 3:21 
Questiondsn creation and deletion Pin
Sonia Gupta2-Jul-07 23:04
Sonia Gupta2-Jul-07 23:04 
Questionlatitude Pin
mohantfor.net2-Jul-07 22:45
mohantfor.net2-Jul-07 22:45 
AnswerRe: latitude Pin
DanB19833-Jul-07 0:07
DanB19833-Jul-07 0:07 
Questionusing hyperlink how tp pass parameter... Pin
Member 38798812-Jul-07 22:41
Member 38798812-Jul-07 22:41 
AnswerRe: using hyperlink how tp pass parameter... Pin
_AK_2-Jul-07 22:51
_AK_2-Jul-07 22:51 
AnswerRe: using hyperlink how tp pass parameter... Pin
Sandeep Akhare2-Jul-07 23:34
Sandeep Akhare2-Jul-07 23:34 
QuestionCan't change controls name ! Pin
ips_sun2-Jul-07 22:04
ips_sun2-Jul-07 22:04 
AnswerRe: Can't change controls name ! Pin
honeyss2-Jul-07 22:28
honeyss2-Jul-07 22:28 
GeneralRe: Can't change controls name ! Pin
ips_sun2-Jul-07 23:01
ips_sun2-Jul-07 23:01 
AnswerRe: Can't change controls name ! Pin
_AK_2-Jul-07 22:52
_AK_2-Jul-07 22:52 
GeneralRe: Can't change controls name ! Pin
ips_sun2-Jul-07 23:00
ips_sun2-Jul-07 23:00 
GeneralRe: Can't change controls name ! Pin
_AK_2-Jul-07 23:05
_AK_2-Jul-07 23:05 
GeneralRe: Can't change controls name ! Pin
Junior Boy2-Jul-07 23:02
Junior Boy2-Jul-07 23:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.