This is a migrated thread and some comments may be shown as answers.

Cannot Display Errors

1 Answer 42 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ryan Grossman
Top achievements
Rank 1
Ryan Grossman asked on 04 May 2015, 05:14 PM

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.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 07 May 2015, 09:57 AM
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.

 
Tags
Ajax
Asked by
Ryan Grossman
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or