?
Solved

VB.net File Path

Posted on 2014-11-12
4
Medium Priority
?
356 Views
Last Modified: 2014-11-13
I have an application that stores the location of a file in the database.

I want to be able to look up the file location using built in functions in Visual Studio and then save the file path as text to a database.

Later, I need to retrieve that file path so it can possibly be edited or viewed.

I have been using the FileUpload component in Visual Studio to do this, but there are limitations.

For example, if someone needs to edit the request, the file path can't be reloaded into the FileUpload component for security reasons.

Does anyone have a better process for making this work?
0
Comment
Question by:yonbret
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 22

Expert Comment

by:plusone3055
ID: 40438166
why not simple add a textbox to your application
query that column from the database
edit it in the textbox
and re-submit to the database with and update statement :)
0
 

Author Comment

by:yonbret
ID: 40438556
I want to use something similar to the Browse features found in the FileUpload control.

With a simple textbox, someone would have to manually type in a long network path for each file.
0
 
LVL 22

Accepted Solution

by:
plusone3055 earned 1000 total points
ID: 40439826
a way to "cheat" that would be to use the browse process and then have the inserted textbox = browserbox and do as suggested above :)
0
 

Author Closing Comment

by:yonbret
ID: 40441364
It works but isn't an ideal solution.

The FileUpload control has no built in events so I had to add an additional button to copy from the FileUpload control to a textbox.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question