I'm having some difficulty implementing the ajax control toolkit file upload. This is what i have coming up and the following is my code. I'm sorry for using VB, i was forced. If you know a C# solution please provide it and i will convert the code. Thank you

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm2.aspx.vb" Inherits="AMS.WebForm2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" />
<asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" />
<asp:Image ID="loader" runat="server"
ImageUrl="~/loading.gif" Style="display: None" />
</form>
</body>
</html>
Code behind
Imports System.Web.Script.Serialization
Imports AjaxControlToolkit
Public Class WebForm2
Inherits System.Web.UI.Page
Protected Sub UploadComplete(sender As Object, e As AjaxControlToolkit.AjaxFileUploadEventArgs)
Dim path As String = Server.MapPath("Files/") + e.FileName
AjaxFileUpload1.SaveAs(path)
End Sub
End Class