<%@ Page Language="C#" UICulture="auto" %>

<!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>ASP.NET AJAX</title>
  <script type="text/javascript">
  function pageLoad() {
    var d = new Date();
    var datestring = dateformat.replace("ss", daynames[d.getDay()])
                               .replace("dd", d.getDate())
                               .replace("mm", d.getMonth() + 1)
                               .replace("yyyy", d.getFullYear());
    $get("date").firstChild.nodeValue = datestring;
  }
  </script>
</head>
<body>
  <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"
      EnableScriptLocalization="true">
      <Scripts>
        <asp:ScriptReference Path="Dayname.js" ResourceUICultures="de-DE,fr-FR" />
      </Scripts>
    </asp:ScriptManager>
    <div>
      <span id="date">&nbsp;</span>
    </div>
  </form>
</body>
</html>
