•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 430,126 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,329 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 566 | Replies: 4
![]() |
•
•
Join Date: Jun 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
You may want to try something like this:
I am reading from text boxes, in a similar fashion I think you can read from a database through your database connection, etc. This does require "using System.IO;"
I hope this helps.
public void Button1_OnClick(object sender, EventArgs e)
{
string path = TextBox1.Text.ToString();
string file = TextBox2.Text.ToString();
DirectoryInfo dir = new DirectoryInfo(path);
FileInfo[] bmpfiles = dir.GetFiles(file);
foreach( FileInfo f in bmpfiles)
{
//add what you need to do with the file when found
Label1.Text = "File Found";
}
}I am reading from text boxes, in a similar fashion I think you can read from a database through your database connection, etc. This does require "using System.IO;"
I hope this helps.
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
age amd apple avatar backup blue gene breach business chips daniweb data data protection database development dos energy enterprise flash government hardware ibm ibm. news ipod it itunes linux media medicine memory microsoft music news open source openoffice pc ps3 red hat security server sql store streaming sun supercomputer supercomputing trends ubuntu video working x86
- Upload files into database (JSP)
- Static information. Store in files? Database? XML? (ASP.NET)
- Storing files in database (C#)
- MP3 to Database (ASP.NET)
- upload images and store the location in a database (PHP)
- Can you get around permissions (Linux Servers and Apache)
- uploading image in database (PHP)
Other Threads in the ASP.NET Forum
- Previous Thread: Data inserting problem
- Next Thread: Display client's PC Date & Time


Linear Mode