Radconfirm not working during second call

3 posts, 0 answers
  1. Mohammed
    Mohammed avatar
    2 posts
    Member since:
    Jun 2011

    Posted 13 Dec 2011 Link to this post

    Hi Experts,

    I have been facing strange issue:

    While calling radconfirm second time not working as expected.

    1) Radconfirm from code behind with callback function.
    2) callback function will make ajaxRequest explicitly if user clicks 'Yes'.

    Everything is fine for the first time. If user performs same action subsequently receiving error.

    Kindly do the needful.
  2. Marin Bratanov
    Marin Bratanov avatar
    4609 posts

    Posted 15 Dec 2011 Link to this post

    Hi Mohammed,

    The second call to RadAlert() should work unless in the meantime there is a JavaScript error thrown on the page - either in some of your custom functions, or due to the content you pass in the second call. The RadAlert() server method needs to go through JavaScript in order to show the RadAlert and thus the string you pass to it needs to be valid for working under JavaScript - i.e. symbols that are reserved for the language should not be used or should be escaped. For JavaScript the most common is the apostrophe (or single quote) which is used to delimit a string, while for HTML an issue may arise with the less than sign ("<") for example. Please check if you are using such symbols and see what is the JavaScript error in your browser console and then try to eliminate it.

    Best wishes,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. Mohammed
    Mohammed avatar
    2 posts
    Member since:
    Jun 2011

    Posted 15 Dec 2011 Link to this post

    Thanks for the reply Marin. It's working now.

Back to Top