|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Browse Button, directory read
This should be a simple question:
I'm using Frontpage to Design the page and .NET to edit the code behind it. Is there an easy way, like a button, or some simple syntax to add a button to "browse PC" where when the user clicks on the button it opens up that standard HardDrive browse box and you can select a file? And question 2, can you do directory reads where you open a directory and then just keep reading through each file in the directory till you get to the end? |
|
#2
|
|||
|
|||
|
Actually
The first thing you're doing wrong is *I'm using Frontpage to Design*
![]() Seriously though... ---BEGIN QUOTE--- Is there an easy way, like a button, or some simple syntax to add a button to "browse PC" where when the user clicks on the button it opens up that standard HardDrive browse box and you can select a file? ---END QUOTE--- How about *simple* html? <input type="file" name="fileName"> Is that what you want? As for question #2 ---BEGIN QUOTE--- can you do directory reads ... ---END QUOTE--- Do you mean *on* the user's machine? or on the server? On the user's machine you *CAN'T* for security reasons, can you imagine web site's being able to acces the content of whats on your machine wihtout your knowledge? Perhaps you could if creating some sort of ActiveX component that *your* users *will* have to download/accept. If you mean on the server then use FSO(File System Object) to read the files inside a directory. Hope this helps! Sincerely Vlince |
|
#3
|
|||
|
|||
|
Well, somehow i found a design page that let me just drag and drop a button that when you clicked it, it searched the clients hardrive and they could select a file that way, which is what i was looking for pretty much.
the limitations of this are that it only selects the file itself, and i'm trying to upload an entire folder if possible. once the folder is uploaded, it will be read on the server side, so i'll check out the PSO tool once i get the folder upload working..... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Browse Button, directory read |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|