Solved

VB.net File Path

Posted on 2014-11-12
4
267 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

6 Experts available now in Live!

Get 1:1 Help Now