Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Browse Local Drives from Webpage

Reply
Thread Tools

Browse Local Drives from Webpage

 
 
Wardeaux
Guest
Posts: n/a
 
      11-03-2004
Hey all,
need sample/article how to let user browse local drives to select a file
and have the local drive location returned so I can store it in my db,
similar to a file upload but without the actual file transfer and I need the
full path...
any assist is greatly appreciated!!
MTIA
wardeaux


 
Reply With Quote
 
 
 
 
=?Utf-8?B?SGFhY2tlZA==?=
Guest
Posts: n/a
 
      11-03-2004
You could just use a FileUpload control, but don't actually upload the file.
It should give you the full local path.

"Wardeaux" wrote:

> Hey all,
> need sample/article how to let user browse local drives to select a file
> and have the local drive location returned so I can store it in my db,
> similar to a file upload but without the actual file transfer and I need the
> full path...
> any assist is greatly appreciated!!
> MTIA
> wardeaux
>
>
>

 
Reply With Quote
 
 
 
 
Wardeaux
Guest
Posts: n/a
 
      11-03-2004
any suggestions on a good one?

"Haacked" <> wrote in message
news:93D5FC6E-7E65-456A-92FD-...
> You could just use a FileUpload control, but don't actually upload the

file.
> It should give you the full local path.
>
> "Wardeaux" wrote:
>
> > Hey all,
> > need sample/article how to let user browse local drives to select a

file
> > and have the local drive location returned so I can store it in my db,
> > similar to a file upload but without the actual file transfer and I need

the
> > full path...
> > any assist is greatly appreciated!!
> > MTIA
> > wardeaux
> >
> >
> >



 
Reply With Quote
 
Enrique Santa Cruz
Guest
Posts: n/a
 
      11-04-2004
You can use a HTML file input control.

<input id="inputfile" style="DISPLAY: none" type="file" name="browser"
runat="server">

Set it up to run at server.

Declare the control as part of page class.

protected System.Web.UI.HtmlControls.HtmlInputFile inputfile;

Then you can use the System.IO namespace to access the file system and the
Browser object to get the filename.

example: string extension =
System.IO.Path.GetExtension(Browser.PostedFile.Fil eName);

Enrique.

"Wardeaux" <> wrote in message
news:ud9uN$...
> Hey all,
> need sample/article how to let user browse local drives to select a file
> and have the local drive location returned so I can store it in my db,
> similar to a file upload but without the actual file transfer and I need
> the
> full path...
> any assist is greatly appreciated!!
> MTIA
> wardeaux
>
>



 
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
Assigning value to Browse button without using browse button in HTML balakrishnan.dinesh@gmail.com Javascript 0 10-12-2007 06:45 AM
Losing Drives - Finding Drives - Losing Drives mel@no.spam.com Computer Support 2 09-21-2007 10:16 PM
Clipping a remote webpage with Javascript/XPath and including in a "local" webpage soren625 Javascript 2 12-12-2006 02:09 PM
code for adding browse button to webpage parkarumesh@gmail.com Java 2 05-15-2006 12:51 PM
Internet Explorer 6 Can't Browse, Other Programs Browse Fine... Ike Computer Support 1 08-02-2005 09:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57