Solved

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

Posted on 2013-05-13
5
367 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 25

Expert Comment

by:Ron Malmstead
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 Malmstead 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 Malmstead
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

737 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