save errors of the "AsyncFileUpload.OnClientUploadError" to database RRS feed

  • Question

  • User947405739 posted

    How to save the errors on OnClientUploadError javascript function to the database on the server.

    I need to use the Business Logic Layer and then from it call the DAL layer. The layers are used by the ASP.NET application.


    Wednesday, December 11, 2013 5:31 PM


All replies

  • User555306248 posted
    <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage2.master" %>
    <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2.min.js"> </script>
        <script type="text/javascript">
            function uploadError(sender, args) {
               // save error to DB
            function uploadComplete(sender, args) {
    } </script> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <asp:AsyncFileUpload ID="AsyncFileUpload1" runat="server" onclientuploadcomplete="uploadComplete" onclientuploaderror="uploadError" /> </asp:Content>

    Wednesday, December 11, 2013 10:58 PM
  • User386652321 posted


    You need to create a WebService to post the data to the server and from client side you can call the servce as given with example in the following link





    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 11, 2013 11:47 PM
  • User947405739 posted

    Thanks, suchitraB.

    Complementary I have found:


    Thanks, again.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, December 14, 2013 9:37 AM