Last post Dec 14, 2011 03:02 PM by pradeepmanne
Dec 23, 2007 06: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 08:52 AM|aadreja|LINK
Dec 23, 2007 10:24 AM|agrarian|LINK
Dec 23, 2007 04:00 PM|aadreja|LINK
Oct 15, 2008 06:02 AM|tanise|LINK
Neither overwrite nor upload happens when used with ScriptManager and UpdatePanel... Whats the reason and solution behind this..
Nov 17, 2008 03:37 AM|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 03:10 PM|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 10: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 11: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 03:02 PM|pradeepmanne|LINK
i used this code its working