P
phl
hello,
I have an input control which saves a file user specifies. Like this :
SaveCon.PostedFile.SaveAs(sDocPath)
This cause a postback which presents a problem as I want this to happen
in my business logic - so my desired postback has already happend and I
don't want it to postback again.
Is there anyway I can suppress this html control from posting back? I
have tried another workaround in vain:
File.Copy(SaveCon.PostedFile.FileName, sDocPath, true);
The problem here is that even though my file definitely exists in the
specified location. I think .Net won;t allow me to access the my disk
outside my app domain space, which is the reason why it thinks my
source file doesn't exists.
Does anyone have any ideas for this?
Cheers
I have an input control which saves a file user specifies. Like this :
SaveCon.PostedFile.SaveAs(sDocPath)
This cause a postback which presents a problem as I want this to happen
in my business logic - so my desired postback has already happend and I
don't want it to postback again.
Is there anyway I can suppress this html control from posting back? I
have tried another workaround in vain:
File.Copy(SaveCon.PostedFile.FileName, sDocPath, true);
The problem here is that even though my file definitely exists in the
specified location. I think .Net won;t allow me to access the my disk
outside my app domain space, which is the reason why it thinks my
source file doesn't exists.
Does anyone have any ideas for this?
Cheers