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

radalert is not working

8 Answers 364 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 2
Rahul asked on 16 Dec 2011, 11:12 AM
I am showing a rad alert by calling the javascript function "radalert(..,..,..,)" ,but it gives me the error "radalert is not defined".i have RadScriptManager and RadWindowManager in the page.the page is anonymous.how can i make it work.

Thanks,
Rahul R

8 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Dec 2011, 01:27 PM
Hello,

I have tried the same and it worked as expected. You can add radalert in any of the following method.

1) By client side
<script type="text/javascript">
 function confirmCallBackFn()
   {
      radalert("Message");
   }
</script>

2) By server side:
C#:
protected void btnAlert_Click(object sender, EventArgs e)
 {
    RadWindowManager windowManager =FindControl(this, "WindowManager") as RadWindowManager;
    windowManager.RadAlert("message", 400, null, "title", null);                                
 }

Thanks,
Princy.
0
Rahul
Top achievements
Rank 2
answered on 19 Dec 2011, 08:21 AM
When i call radalert from an anonymous page,it is not getting the permission
0
Marin Bratanov
Telerik team
answered on 19 Dec 2011, 05:03 PM
Hi Rahul,

Handling the forms authentication redirects is actually not a part of the RadControls and is considered general knowledge. I can suggest you start from the following links:
use the location element to allow anonymous users on your page: http://msdn.microsoft.com/en-us/library/b6x6shw7.aspx
more detailed information on why and how such behavior occurs: http://haacked.com/archive/2011/10/04/prevent-forms-authentication-login-page-redirect-when-you-donrsquot-want.aspx
or generally the following google search: http://www.google.com/search?q=avoid+redirect+to+login+page+asp.



All the best,
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
Rahul
Top achievements
Rank 2
answered on 20 Dec 2011, 06:31 AM
Hi Marin,
i am not asking about the Form Authentication or how to set a page as anonymous .Here i am asking whether i have to do anything else to  make the radcontrol related functions work properly in an anonymous page(Ie, something i have to do to get permission in the ".axd" files related to the rad control)?

Thanks,
Rahul R

0
Rahul
Top achievements
Rank 2
answered on 20 Dec 2011, 08:03 AM
Hi Marin,
i have make it wok by giving anonymous permission to the "Telerik.Web.UI.WebResource.axd".
is this a proper way?Is there any issue will arise when we consider the security?
Thanks,
Rahul R
0
Accepted
Marin Bratanov
Telerik team
answered on 20 Dec 2011, 04:08 PM
Hi Rahul,

This is indeed the suggested solution (see this help article), as this resource serves the scripts, stylesheets and images the controls need to function. It does not expose any other data, therefore it does not compromise your site. Alternatively, you can use the RadScriptManager on this page and configure it to download the scripts from our CDN. The same can be done with the RadStyleSheetManager and its CDN, so that these requests do not go to  your server.


Greetings,
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
Rahul
Top achievements
Rank 2
answered on 22 Dec 2011, 05:55 AM
Hi Marin,

Your reply was very useful for me.

Greetings,
Rahul R

0
Andrea
Top achievements
Rank 2
answered on 23 Sep 2015, 03:14 PM

Hi Princy, your suggestion worked for me.

Thanks a lot !

Vittorio

Tags
General Discussions
Asked by
Rahul
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Rahul
Top achievements
Rank 2
Marin Bratanov
Telerik team
Andrea
Top achievements
Rank 2
Share this question
or