Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a browse button

Status
Not open for further replies.

bouwob

Programmer
Apr 12, 2006
171
US
I needed a way to have a browse button bring back remote folder path information. That led me to try using an “input (file)” control, but I just want the path information and not have a file uploaded. Whatever folder or file they choose, I need to shoot the path information to a web service.

So that being said, is there a control available that will allow me to have a browse and a textbox but no movement of files?

tia
 
You can still use the control and not upload a file. After the user chooses a file have them click a button that activates the webservice. In the click event do something like:
Code:
If Me.FileUpload1.HasFile Then
   Dim path as string  = Me.FileUpload1.PostedFile.FileName
   'Strip off the name from the PostedFile.FileName then
   'call you webservice.
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top