Last post Dec 14, 2011 10:02 AM by pradeepmanne
Dec 23, 2007 01:17 AM|agrarian|LINK
I am using asp:fileupload for uploading files. I want to be able to check if the file already exists in the upload folder and ask the user if he/she wants to overwrite the existing file. How can I accomplish this?
Dec 23, 2007 03:52 AM|aadreja|LINK
Dec 23, 2007 05:24 AM|agrarian|LINK
Dec 23, 2007 11:00 AM|aadreja|LINK
Oct 15, 2008 01:02 AM|tanise|LINK
Neither overwrite nor upload happens when used with ScriptManager and UpdatePanel... Whats the reason and solution behind this..
Nov 16, 2008 10:37 PM|krishnada25|LINK
Hi Iam using the code that you wrote once I click on OK the file is getting saved in the temporary folder instead of the c:\\ folder. how can I copy the existing file from temp to c? and replace the existing one???
Nov 21, 2011 10:10 AM|pradeepmanne|LINK
i have followed the script but its not working on tabpanel
am using ajaxtoolkit for tabpanel the script is not working with tabpanels
any solution for that???
Nov 23, 2011 05:08 AM|ramie.net|LINK
Then check if the file exists before you do the upload.
// Specify the path to save the uploaded file to.
string savePath = "c:\\project\\uploads\\";
// Get the name of the file to upload.
string fileName = FileUpload1.FileName;
// Create the path and file name to check for duplicates.
string pathToCheck = savePath + fileName;
// Check to see if a file already exists with the same name as the file to upload.
//same file exists do something before it is overwritten
Nov 23, 2011 06:55 AM|ramie.net|LINK
Add client-side script to a Button, LinkButton, or ImageButton s client-side onclick event
can be accomplished through the use of the OnClientClickproperty
<asp:Button ID="Button" runat="server" OnClientClick="return confirm('Are you certain you want to do what you want to do?');">
Dec 14, 2011 10:02 AM|pradeepmanne|LINK
i used this code its working