Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
Hi all,
 
I want to retrieve file name in text box with formats like doc,xls,pdf,jpeg,png,vedio,txt etc from particular directory and then store it to database.
 
After that when i click any row in gridview that file will open.
 
its very urgent.
 
This is my requirement
 
for archiving all type of
 
documents that are received by emails or scanned pertaining
 
to a job or transaction
Posted 26 Jan '11 - 19:31
Edited 26 Jan '11 - 22:58

Comments
Sandeep Mewara - 27 Jan '11 - 1:47
You say it's urgent so please share what effort have you made so far on your own?
Ankur\m/ - 27 Jan '11 - 2:14
What I understand is - you need to read all files from a directory, retrieve the file types and then save all/some of them to database. Why do you want to save it to database if it is already present on the disk on the server? Or do you need the clients to upload files? Are you sure it's an ASP.NET application?
skaftabali - 27 Jan '11 - 2:50
sorry i want retrieve file name on textbox
Sandeep Mewara - 27 Jan '11 - 3:48
and we want to see some effort from your side.
digital man - 27 Jan '11 - 3:29
Poor question: either homework or you've been given work that you don't know how to do. Make some effort to research and learn on your own then ask questions when you get stuck and can show what you have already tried.

1 solution

You want to use the DirectoryInfo.GetFiles() method. Goole is your friend.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 253
1 Rohan Leuva 220
2 Sergey Alexandrovich Kryukov 172
3 Abhinav S 168
4 Mahesh Bailwal 165
0 Sergey Alexandrovich Kryukov 8,528
1 OriginalGriff 6,819
2 CPallini 3,603
3 Rohan Leuva 2,923
4 Maciej Los 2,268


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid