upload a file without using upload ajax control toolkit in asp.net

How can I upload a file without using upload control ajax control toolkit in asp.net
VBdotnet2005Asked:
Who is Participating?
 
Ron MalmsteadConnect With a Mentor Information Services ManagerCommented:
Like this..

<asp:FileUpload ID="FileUpload1" runat="server" />
0
 
Ron MalmsteadInformation Services ManagerCommented:
Have you tried just the regular asp fileupload control?

FileUpload1.SaveAs(Server.MapPath("~/Files/" & filename).ToString)
0
 
VBdotnet2005Author Commented:
Like this  <input id="FileInput" runat="server" type="file" /> ?
0
 
VBdotnet2005Author Commented:
This object is different from file upload control ajax control toolkit, correct? I want to use without it.
0
 
Ron MalmsteadInformation Services ManagerCommented:
I do not have ajax installed on the solution I provided the snippet from.., so yes.
If you look, under the standard toolbox, you should see it listed.  Fileupload control.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.