Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi All,

Objective : To upload an mdb file to

I am developing an application that has both asp & aspx pages. asp has file upload control. User selects file on asp page, clicks Submit button on asp page and user is redirected to aspx page. Now i want to save the Mdb on the webserver. How the aspx will do this.

Posted

Uploading files in ASP.NET is vastly easier than traditional ASP. Just make sure you have the following string in your form tag:

enctype="multipart/form-data"

 

If you had a file control named "myUploader" on your web form you could access its uploaded file contents with something like:

HttpPostedFile myFile = myUploader.PostedFile;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...