Click here to Skip to main content
15,913,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASP.NET
<asp:FileUpload ID="fileUpload" runat="server" multiple="multiple">

<asp:Button ID="upload" runat="server" Text="Upload" OnClick="Upload_Click"/>




What i need to do is- when i click on 'Open' Button of fileUpload Control window, the selected files will be display in gridview just after click on 'Open' button and then After Click on Upload button files start to upload.
Posted
Updated 18-Jun-13 1:41am
v4
Comments
Sunasara Imdadhusen 18-Jun-13 4:40am    
use get file name e.g. Path.GetFileName(file.FileName);

1 solution

I think this should help..
set the visibility of the fileupload button to false and
SQL
if (FileUpload1.HasFile)
//store it and show the file names in gridview
After the user confirms
then show the upload button
    //    {
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900