or
<script language="javascript"> function SessionTimeoutOnShowing(sender, args) { } function ContinueSession() { var notification = $find("rnSessionTimeout"); notification.update(); notification.hide(); }</script> <telerik:RadNotification ID="rnSessionTimeout" runat="server" Position="Center" Width="300" Height="125" LoadContentOn="PageLoad" AutoCloseDelay="10000" ShowInterval="15000" Title="Session Expiration" Value="~/" TitleIcon="Warning" OnClientShowing="SessionTimeoutOnShowing" ContentIcon="Warning" Skin="Default" EnableRoundedCorners="true"> <ContentTemplate> Your session is about to expire. Do you wish to continue using this site?<br /> <telerik:RadButton Skin="Default" ID="continueSession" runat="server" Text="Continue Your Session" Style="margin-top: 10px;" OnClientClick="ContinueSession(); return false;" /> </ContentTemplate> </telerik:RadNotification>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html xmlns="http://www.w3.org/1999/xhtml" ><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><telerik:RadWindow ID="HistoricalLocalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/HistoricalLocalSettings.aspx" OnClientShow="OnHistoricalLocalSettingsShow" OnClientClose="OnHistoricalLocalSettingsClose" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" Title="Settings" Width="450px" AutoSize="True" AutoSizeBehaviors="Height" OnClientResize="OnHistoricalLocalSettingResizeEnd" OnClientResizeEnd="OnHistoricalLocalSettingResizeEnd" />function ShowLocalSettings(sender, eventArgs) { radDock = sender; var reportType = radDock.get_element().getAttribute("ReportType"); if (reportType == "HistoricalReport") { oWindow = window.radopen(null, "HistoricalLocalSettingsWindow").center(); } else if (reportType == "CustomReport") { oWindow = window.radopen(null, "CustomLocalSettingsWindow").center(); } else { alert("Didn't find report type."); } SetupCenteringDialog(oWindow);}//Opens a historical report settings window -- passing the known settings to it//so that the window will show the proper data to the user.function OnHistoricalLocalSettingsShow(sender, eventArgs) { sender.argument = radDock.get_id();}//When the user changes between Line Chart and Pie Chart the number of controls//displayed on the window changes. As such, I need to expand/contract the//size of the window. This causes the window to resize itself.function OnClientSelectedIndexChanged(sender, eventArgs) { var comboBoxValue = eventArgs.get_item().get_value(); ValidateWindowState(comboBoxValue); if ($telerik.isIE) { timeout = setTimeout(function () { AdjustRadWindow(); }, 500); } else { AdjustRadWindow(); }}function AdjustRadWindow() { var oWindow = GetRadWindow(); if (oWindow.isVisible()) { oWindow.autoSize(true); }}