Can you make a radAlert popup on a .ascx page when the page loads?

2 posts, 0 answers
  1. Acadia
    Acadia avatar
    203 posts
    Member since:
    May 2005

    Posted 08 Apr 2009 Link to this post

    Using Javascript, is there a way to do this?  Every time the .ascx page loads I want to use Javascript to popup a radAlert box.

    This .ascx has no form or body.

  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 08 Apr 2009 Link to this post

    Unless I've missed something, .ascx files must exist within an .aspx page at some point in order to be displayed in a browser.  So, the .aspx page will have to have a form in order to use the RadControls for ASP.NET AJAX, and that's where you should put a RadWindowManager.  So, on your .aspx page:

    <telerik:radwindowmanager runat="server" id="RadWindowManager1" />

    And in your .ascx page add the following script:


    function alertTheUser() { radalert('Hello World'); }

    Which will use the RadWindowManager from the .aspx page.  Hope that helps,

  3. DevCraft R3 2016 release webinar banner
Back to Top