Are you using AJAX to upload the file, or a regular form that submits to an ASP page?
If AJAX:
There is a ninja technique in order to do this, it is not intuitive. I won't get into it unless necessary.
If form:
The "action" attribute tells the form where to upload the file to. The "enctype" attribute can be used to upload a file by putting "multipart/form-data" as the value. Example:
Code:
<form method="post" action="/path/to/file.aspx" enctype="multipart/form-data">
<input type="file" name="file">
<button>Upload</button>
</form>
Change "/path/to/file.aspx" to your asp program that uploads files. You can put other data in this form, too- not just files. I don't know how to actually write the ASP code for uploading but I'm sure googling "ASP.net upload file" will tell you everything you need, including repeating what I just said about the form.
Bookmarks