Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Browse button

Reply
Thread Tools

Browse button

 
 
sham
Guest
Posts: n/a
 
      07-25-2006
Hi to all,

I have text box that is bound to a field in my datasource which contains a
directory path.

What I need is the ability to allow the user to press a browse button, which
launches a dialog that will allow him to select a "directory" path. Once
done, the directory path is stored in the text box (which is binded above).

How can I do this?

I have seen a <input type="file"> tag but is only allows the selection of a
file. In addition, it is not bound to a datasource.

Sham.


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      07-25-2006
There are some IE-specific behaviors that can be set on the HTMLInputFile
control to allow for folder browsing. Regarding it being databound, that
doesn't make sense for this type of control since it is designed for the user
to access their PC client-side.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"sham" wrote:

> Hi to all,
>
> I have text box that is bound to a field in my datasource which contains a
> directory path.
>
> What I need is the ability to allow the user to press a browse button, which
> launches a dialog that will allow him to select a "directory" path. Once
> done, the directory path is stored in the text box (which is binded above).
>
> How can I do this?
>
> I have seen a <input type="file"> tag but is only allows the selection of a
> file. In addition, it is not bound to a datasource.
>
> Sham.
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change text in the button "browse" from a file field html control Olivier Verdin ASP .Net 4 12-30-2008 12:14 PM
Assigning value to Browse button without using browse button in HTML balakrishnan.dinesh@gmail.com Javascript 0 10-12-2007 06:45 AM
Internet Explorer 6 Can't Browse, Other Programs Browse Fine... Ike Computer Support 1 08-02-2005 09:20 PM
Posting files via "Browse" button ? Henry HTML 2 05-19-2004 06:05 AM
Coloring input type=file browse button; uploading multiple files Ron Brennan HTML 27 05-12-2004 01:52 AM



Advertisments