Click here to Skip to main content
15,915,094 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello.

This is my problem.

I want to upload file to gridview and remove file after upload complete incase you upload wrong file but I don't know how to do this.

please help,Thank you.
Posted
Updated 19-Jun-13 15:57pm
v3
Comments
koleraba 19-Jun-13 22:00pm    
You will have to be more specific than "Upload a file to grid view". Do you mean download a file from some external source to you web server and than use it to populate your GridView? Specify where does the file whose content you want to display in a grid view comes from.
Blinkberry 20-Jun-13 0:24am    
I download a file from some external source to my wed server and gridview display my file after upload when you click file in gridview It open to new tab for display data of file.

1 solution

A gridview does not exist on the client side. It's a server side construct that creates a table. You can put a file upload control inside your gridview if you like. Once you get the file uploaded, you need to save it and use a URL to the file in your website in order to display it.
 
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