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

<!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>Przetwarzanie po stronie klienta</title>
</head>

<script language="javascript">
       function ButtonTest()
       {
          alert("Przycisk kliknięty - przetwarzanie po stronie klienta");
       }

       function DoChange()
       {
          document.getElementById("btnSave").disabled=false;
       }
</script>

<body>
   <form id="form1" runat="server">
   <div>
      <h1>
         Przetwarzanie po stronie klienta</h1>
      <input id="btnHTML" type="button" value="Przycisk HTML" runat="server" onclick="javascript:ButtonTest();"
         onserverclick="btnHTML_ServerClick" />
      <asp:Button ID="btnServer" runat="server" Text="Przycisk ASP.NET" OnClientClick="javascript:ButtonTest();"
         OnClick="btnServer_Click" />
      <br />
      <input id="txtHTML" type="text" runat="server" onchange="javascript:DoChange();" /><br />
      <br />
      <asp:TextBox ID="TextBox1" runat="server" onchange="javascript:DoChange();"></asp:TextBox>
      <br />
      <asp:Button ID="btnSave" runat="server" Text="Zapisz" Enabled="false" />
   </div>
   </form>
</body>
</html>

