yonbret
asked on
VB.net File Path
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?
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?
ASKER
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.
With a simple textbox, someone would have to manually type in a long network path for each file.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
query that column from the database
edit it in the textbox
and re-submit to the database with and update statement :)