Advertisement
akass

Untitled

Dec 24th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.23 KB | None | 0 0
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
  2.  
  3. <!DOCTYPE html>
  4.  
  5.  
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head runat="server">
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  9.     <title>Интерпритатор</title>
  10.    
  11.    
  12. </head>
  13. <body>
  14.    
  15.    
  16.     <form id="form1" runat="server">
  17.        
  18.     <div>
  19.         <h1>Интерпритатор</h1>
  20.  
  21.        
  22.    
  23.     </div>
  24.         <p>
  25.             Ввод</p>
  26.        
  27.         <asp:TextBox  ID="TextBox1" runat="server"></asp:TextBox>
  28.         <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Старт"  Enabled="false"/>
  29.         <p>
  30.             Вывод</p>
  31.         <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
  32.         <asp:Button ID="Button2" runat="server" Text="Отмена" OnClick="Button2_Click" />
  33.         <script lang =" javascript" type ="text/javascript" >
  34.         var input = document.getElementById('TextBox1');
  35.         var button = document.getElementById('Button1');
  36.  
  37.         input.addEventListener('input', function f() { button.disabled = (input.value === ''); })
  38.         </script>
  39.     </form>
  40. </body>
  41.    
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement