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

radconfirm on page load

1 Answer 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
daouddajani
Top achievements
Rank 1
daouddajani asked on 23 Sep 2008, 08:03 AM
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 ?

how?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Nov 2008, 09:45 AM

Hi Daouddajani,

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

ASPX:

<head runat="server">  
    <title>RadConfirm</title> 
</head> 
<body> 
    <form id="form1" runat="server" > 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
    <Windows> 
    </Windows>      
    </telerik:RadWindowManager> 
    <asp:ScriptManager ID="ScriptManager1" runat="server">  
    </asp:ScriptManager> 
</form> 
</body> 

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


Thanks,
Princy.
Tags
Window
Asked by
daouddajani
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or