<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AjaxLiteral.aspx.cs" Inherits="AjaxLiteral" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!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" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager>
  	<asp:Panel ID="Panel1" runat="server" DefaultButton="ButtonShowDateTime"> 
 	    <asp:Literal ID="LiteralDateTime" runat="server"></asp:Literal> 
 	 
 	    <telerik:RadTextBox ID="RadTextBox1" runat="server"></telerik:RadTextBox> 
 	     
 	    <asp:Button ID="ButtonShowDateTime" runat="server" Text="Show me!" 
 	        OnClientClick="ButtonShowDateTime_Click(); return false;" /> 
 	</asp:Panel> 
	 
 	<telerik:RadAjaxManager ID="RadAjaxManagerMain" runat="server" OnAjaxRequest="RadAjaxManagerMain_AjaxRequest"> 
 	    <AjaxSettings> 
 	        <telerik:AjaxSetting AjaxControlID="RadAjaxManagerMain"> 
 	            <UpdatedControls> 
 	                <telerik:AjaxUpdatedControl ControlID="LiteralDateTime" /> 
 	            </UpdatedControls> 
 	        </telerik:AjaxSetting> 
 	    </AjaxSettings> 
 	</telerik:RadAjaxManager>   
 	 
 	<script type="text/javascript" language="javascript"> 
 	    function ButtonShowDateTime_Click() 
 	    { 
 	        alert("client cutton_click was fired"); 
 	        $find("<%=RadAjaxManagerMain.ClientID%>").ajaxRequest("Save"); 
 	    } 
 	</script>     
    </div>
    </form>
</body>
</html>
