Solved

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

Posted on 2013-05-13
5
356 Views
Last Modified: 2013-05-22
How can I upload a file without using upload control ajax control toolkit in asp.net
0
Comment
Question by:VBdotnet2005
  • 3
  • 2
5 Comments
 
LVL 25

Expert Comment

by:Ron M
ID: 39162065
Have you tried just the regular asp fileupload control?

FileUpload1.SaveAs(Server.MapPath("~/Files/" & filename).ToString)
0
 

Author Comment

by:VBdotnet2005
ID: 39162159
Like this  <input id="FileInput" runat="server" type="file" /> ?
0
 
LVL 25

Accepted Solution

by:
Ron M earned 500 total points
ID: 39162350
Like this..

<asp:FileUpload ID="FileUpload1" runat="server" />
0
 

Author Comment

by:VBdotnet2005
ID: 39162859
This object is different from file upload control ajax control toolkit, correct? I want to use without it.
0
 
LVL 25

Expert Comment

by:Ron M
ID: 39163032
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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now