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
Solved

VB.net File Path

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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