Solved

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

Posted on 2013-05-13
5
359 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

21 Experts available now in Live!

Get 1:1 Help Now