radconfirm on page load

2 posts, 0 answers
  1. daouddajani
    daouddajani avatar
    6 posts
    Member since:
    Apr 2007

    Posted 23 Sep 2008 Link to this post

    am developing a website that needs to display a disclaimer the first time the user enter the page. if the user agree on the disclaimer it will continue to display the page other wise it will redirect to another page.

    no click needed to show the disclamer.

    is this possible using radconfirm ?

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Nov 2008 Link to this post

    Hi Daouddajani,

    You can implement this scenario by using RadConfirm on PageLoad. Please try the below codes.


    <head runat="server">  
        <form id="form1" runat="server" > 
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  

    <script language="javascript" type="text/javascript">  
    function pageLoad()   
    function OpenWin()  
        radconfirm('Are you sure?', confirmCallBackFn, 330, 100);  
    function confirmCallBackFn(arg)   
        if (arg == false)  
            window.parent.location ="page1.aspx";  

Back to Top