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

Radconfirm not working during second call

2 Answers 59 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Mohammed
Top achievements
Rank 1
Mohammed asked on 13 Dec 2011, 10:59 AM
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 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 Dec 2011, 01:02 PM
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,
Marin
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
0
Mohammed
Top achievements
Rank 1
answered on 15 Dec 2011, 01:18 PM
Thanks for the reply Marin. It's working now.

Cheers.
Tags
Ajax
Asked by
Mohammed
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Mohammed
Top achievements
Rank 1
Share this question
or