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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upload a file?

Status
Not open for further replies.

Junior1544

Technical User
Apr 20, 2001
1,267
0
0
US
I'm not exacly new to asp.net and vb.net, but i only do what i know how.

I was just asked to be able to upload an excel file to import to an online database. the data access stuff i don't have a problem with right now, what i'm having a problem with is being able to upload the excel file.

i've tried a few different things, and the most i can get the page to do is display the choose file dialog.. how to i make it transfer the file to the server, and then how do i make sure it's in a certain place each time, and a certain file name?

i have tried lookin around in here for help on this, but it seems everyone know's how to do this but me..

Thanks
--James


Life is change. To deny change is to deny life.
 
You can just use a FileUpload control and then use it's SaveAs method to save the posted file to a directory of your choice.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top