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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<script runat="server">
  void Page_Load()
  {
    if (Page.IsPostBack)
    {
      Label1.Text = "Zostałeś ostrzeżony!";
    }
  }
</script>

<!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>ASP.NET AJAX</title>
</head>
<body>
  <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div>
      <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>
      <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText="Czy jesteś pewien?"
        TargetControlID="LinkButton1" />
      <br />
      <asp:Label ID="Label1" runat="server" />
    </div>    
  </form>
</body>
</html>
