<%@ Page Language="VB" AutoEventWireup="false" 
    CodeFile="CrossPagePostingAccessingPrevious.aspx.vb" 
    Inherits="CrossPagePostingAccessingPrevious" %>

<!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 id="Head1" runat="server">
   <title>Ściśle określony mechanizm Cross-Page Posting</title>
</head>
<body>
   <h1>
      Ściśle określony mechanizm Cross-Page Posting</h1>
   <form id="form1" runat="server">
   <p>
   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="Oglądanie telewizji" />
         <asp:ListItem Text="Seks" />
         <asp:ListItem Text="Jazda na nartach" />
         <asp:ListItem Text="Jazda na rowerze" />
   </asp:DropDownList>
   </p>
   <div>
      <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="Metoda Cross Page Post" PostBackUrl="TargetPage.aspx" />
   </div>
   </form>
</body>
</html>
