radalert is not working

9 posts, 1 answers
  1. Rahul
    Rahul avatar
    13 posts
    Member since:
    Dec 2011

    Posted 16 Dec 2011 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 16 Dec 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rahul
    Rahul avatar
    13 posts
    Member since:
    Dec 2011

    Posted 19 Dec 2011 Link to this post

    When i call radalert from an anonymous page,it is not getting the permission
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 19 Dec 2011 Link to this post

    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
  6. Rahul
    Rahul avatar
    13 posts
    Member since:
    Dec 2011

    Posted 20 Dec 2011 Link to this post

    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

  7. Rahul
    Rahul avatar
    13 posts
    Member since:
    Dec 2011

    Posted 20 Dec 2011 Link to this post

    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
  8. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 20 Dec 2011 Link to this post

    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
  9. Rahul
    Rahul avatar
    13 posts
    Member since:
    Dec 2011

    Posted 21 Dec 2011 Link to this post

    Hi Marin,

    Your reply was very useful for me.

    Greetings,
    Rahul R

  10. Vittorio Morellini
    Vittorio Morellini avatar
    5 posts
    Member since:
    Jul 2010

    Posted 23 Sep 2015 in reply to Princy Link to this post

    Hi Princy, your suggestion worked for me.

    Thanks a lot !

    Vittorio

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017