Alert from C# code.

2 posts, 0 answers
  1. Katya
    Katya avatar
    21 posts
    Member since:
    May 2013

    Posted 13 Nov 2013 Link to this post

    There is a radbutton in my page and I am writing some C# code in the button click event. In the C# code and I am parsing a date in a try block and if an exception is generated I want to display it and for that I used a radalert. But I found that the alert is displayed after all the c# lines of codes are executed. On debugging that line is executed without any error. Why the delay in displaying the alert, Is this a bug?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Nov 2013 Link to this post

    Hi Katya,

    This is how the RadWindowManager's popups work and it is not a bug. RadWindowManager's popups such as RadAlert cannot block the execution thread like the standard browser popups and hence it is displayed after executing all the C# code. If you have some logic which is to be executed after the popup is displayed, then you can make use of its ClientCallBack function.

    Hope this helps,
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top