<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!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>Index</title>
</head>
<body>
    <div>
<h2>What time is it?</h2> 
<% using(Ajax.BeginForm("GetTime",  
                        new AjaxOptions { UpdateTargetId = "myResults" })) { %> 
    <p> 
        Pokaż czas w strefie: 
        <select name="zone"> 
            <option value="utc">UTC</option> 
            <option value="bst">BST</option> 
            <option value="mdt">MDT</option> 
        </select> 
        <input type="submit" value="Start" /> 
    </p> 
<% } %> 
<div id="myResults" style="border: 2px dotted red; padding: .5em;"> 
    Tu pojawią się wyniki
</div>
<p> 
    Strona ta została wygenerowana o godzinie <%: DateTime.UtcNow.ToString("h:MM:ss tt") %> czasu UTC</p> 

    
    </div>

    <script type="text/javascript"  
            src="<%: Url.Content("~/Scripts/MicrosoftAjax.js") %>"></script> 
    <script type="text/javascript"  
            src="<%: Url.Content("~/Scripts/MicrosoftMvcAjax.js") %>"></script> 
</body>
</html>
