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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>Mechanizm Cross-Page Posting</title>
</head>
<body>
   <form id="form1" runat="server">
   <div>
      <h1>Mechanizm Cross-Page Posting</h1>
      Wybierz swoj ulubion czynno:&nbsp;
      <asp:DropDownList ID="ddlFavoriteActivity" runat="server"
            AutoPostBack="true">
         <asp:ListItem Text="Jedzenie" />
         <asp:ListItem Text="Spanie" />
         <asp:ListItem Text="Programowanie" />
         <asp:ListItem Text="Ogldanie telewizji" />
         <asp:ListItem Text="Seks" />
         <asp:ListItem Text="Jazda na nartach" />
         <asp:ListItem Text="Jazda na rowerze" />
      </asp:DropDownList>
      <br />
      <br />
      <br />
      <asp:Button ID="btnServerTransfer" runat="server"
         Text="Metoda Server.Transfer"
         OnClick="btnServerTransfer_Click" />
      <asp:Button ID="btnRedirect" runat="server"
         Text="Metoda Response.Redirect"
         OnClick="btnRedirect_Click" />
      <asp:Button ID="btnCrossPage" runat="server"
         Text="Mechanizm Cross-Page Posting"
         PostBackUrl="TargetPage.aspx" />
   </div>
   </form>
</body>
</html>
