Author: Nilesh.P | Posted on: 7/23/2008 6:56:54 AM | Views : 297

ok apparently im encountering some weird problems with the asp.net fileupload control

I have a fileupload control which is supposed to upload text files and store it in a directory.after uploading it transfers the user to another page from which he can choose to come back to the fileupload page.

ok now if there is no existing directory then at the time of uploading it creates a new directory and stores the uploaded file in the same and then transfers to the next page

but if there already exists a directory with a file then it ideally should delete the directory and create a new one, then store the file in the directory and xfer to the next page.

suprisingly it does do that but after it transfers to the next page the session is killed causing the authentication to fail and user is transported to the default page. As long as the directory is still present it always kills the session on coming back from the next page. I have no idea why this happens and ...

Go to the complete details ...