Solved

VB.net File Path

Posted on 2014-11-12
4
355 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 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

Independent Software Vendors: 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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

717 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