Cannot Display Errors

2 posts, 0 answers
  1. Ryan Grossman
    Ryan Grossman avatar
    12 posts
    Member since:
    Nov 2009

    Posted 04 May 2015 Link to this post

    I noticed when I have an error, the ajax loading panel just goes away and doesn't show the error details on my label. 

    On my content page I have a sub

    Sub UpdateRecord(ByVal strRetry As String, ByVal strSender As String)
            Dim sb As New StringBuilder()
            Try
               
                
                Throw New Exception("Oh no! deadlock")
                
            Catch ex As Exception
                'Handle true exceptions here
                litError.Text = sb.ToString()
                If litError.Text > "" Then
                    pnlError.Visible = True
                    RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("window.scrollTo(0,0);")
                End If
            End Try
        End Sub

     

    Master page

     <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

     

     

    CustomErrors is off

     

    How do I get this to show the error info on the screen. This worked fine in 1.1 and 2.0 apps.

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 07 May 2015 Link to this post

    Hi Ryan ,

    See the help topic below:
    http://www.telerik.com/help/aspnet-ajax/ajax-error-handling.html

    Regards,
    Maria Ilieva
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top