How to upload file in asp.

N

news.online.no

Hi,
I'm working on a asp-application where I shall upload a xml-file from the
user,
and then process til file (xml) for insert into a database. I'm currently
using
a "INPUT-field of TYPE=file" to browse for file, and a extra submit button
to
perform the actual transfer and start file-processing.

Is it possible to show the user one ebutton "IMPORT" without any text-field
associated with it, which browses for the file and directly startes the
upload
to server and triggers file-processing. The actual processing of the file
must be
done on the server-side (inserts to db etc.).

Stein
 
M

Martin Honnen

news.online.no said:
I'm working on a asp-application where I shall upload a xml-file from the
user,
and then process til file (xml) for insert into a database. I'm currently
using
a "INPUT-field of TYPE=file" to browse for file, and a extra submit button
to
perform the actual transfer and start file-processing.

Is it possible to show the user one ebutton "IMPORT" without any text-field
associated with it, which browses for the file and directly startes the
upload
to server and triggers file-processing. The actual processing of the file
must be
done on the server-side (inserts to db etc.).

In general on the Web your ASP page needs to use HTML form controls and
those only have <input type="file"> for your purpose. Maybe if you are
on an intranet there are browser specific solutions with ActiveX controls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top