http://stephenwalther.com/archive/2012/05/01/ajax-control-toolkit-may-2012-release
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ajaxfileupload.aspx.cs" Inherits="ajaxfileupload" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> xmlns="http://www.w3.org/1999/xhtml"> runat="server">
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; public partial class ajaxfileupload : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void AjaxFileUpload1_UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e) { string filePath = "~/upload/" + e.FileName; AjaxFileUpload1.SaveAs(filePath); } }
Nenhum comentário:
Postar um comentário