example of control in ajax " AsyncFileUpload" using asp.net
AsyncFileUpload.aspx.
<%@ Page Language="C#"
AutoEventWireup="true"
CodeFile="AsyncFileUpload.aspx.cs"
Inherits="AsyncFileUpload"
%>
<%@ Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit"
TagPrefix="asp"
%>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" ></asp:ScriptManager>
<asp:AsyncFileUpload ID="AsyncFileUpload1" runat="server" CompleteBackColor="White"
Width="350" UploaderStyle="Modern" UploadingBackColor="#CCFFFF"
ThrobberID="Image1" OnClientUploadError="uploadError" OnUploadedComplete="uploadComplete" />
<asp:Image ID="Image1" runat="server" ImageUrl="~/process.gif" /><br />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
AsyncFileUpload.aspx..cs
using System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
public partial class AsyncFileUpload : System.Web.UI.Page
{
protected void Page_Load(object
sender, EventArgs e)
{
}
}
0 comments :