Solved

VB.net File Path

Posted on 2014-11-12
4
319 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
  • 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Export import database 4 44
Split in Javascript 5 31
Capture logon name 13 46
Code works but it's slow 24 44
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now