PDA

Click to See Complete Forum and Search --> : How to browse


deano1
Jun 13th, 2002, 05:01 AM
Hi,

I am trying to develope a web site whereby a person can browse there local drive select a file and upload to web server. My first question is there a built in component which can be used for browsing file system. Second question, what code do i need to actually get the file uploaded.

ih yeah, another little teaser. I have a button i don't want visible upon page_load, so i set the visible property to false i then need the button to be visible when another button is pushed so i write inside on_click event button.visible = true , thing is the button stays invisible?

Thanks In Advance

Deano

kcornell
Jun 20th, 2002, 09:22 PM
a) Try using the HTML File Control to let the user browser their computer and select a file. Not sure about uploading it, but that's a great start.

b) This is the way I understand the on_click event business (I could be wrong, and if I am, I'm sure I'll be corrected): since all the controls run on the server, and not in your user's browser, when they trigger the onclick, the button DOES make itself visible... to the server! The user won't see the button until the ASP page refreshes... and since you have in page_load for the button to set invisible, it'll always be invisible.