Please try the following code:
- <%@ Page language="c#"%>
- <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>
-
- <script runat="server">
- protected override void OnInit(EventArgs e)
- {
- base.OnInit(e);
- Uploader1.FileUploaded += new UploaderEventHandler(Uploader_FileUploaded);
- }
-
- void Uploader_FileUploaded(object sender, UploaderEventArgs args)
- {
- Uploader uploader = (Uploader)sender;
- Response.Redirect("http://google.com", false);
-
- }
- </script>
- <html>
- <head>
- </head>
- <body>
- <form id="Form1" method="post" runat="server">
- <CuteWebUI:Uploader runat="server" ID="Uploader1" InsertText="Upload File (Max 10M)">
- <VALIDATEOPTION MaxSizeKB="10240" />
- </CuteWebUI:Uploader>
- </form>
- </body>
- </html>
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx