locked
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.

    Thanks.

    Wednesday, December 11, 2013 5:31 PM

Answers

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>
    <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) {
               //do
    } </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

    HI,

    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

     

    http://msdn.microsoft.com/en-us/library/bb398998(v=vs.110).aspx

     

     

    • 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:

    http://msdn.microsoft.com/en-us/library/bb398998%28v=vs.110%29.aspx

    Thanks, again.

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