Facebook Twitter RSS
banner

Adding two numbers in javascript

Addition of Two Numbers in Asp.Net.

 

  <html>
  <head>
  <title>Add two numbers </title>
  </head>
  <body>
  <form id="form1" runat="server"><br />
  <div style="width:400px; height:150px;">
  <div style="width:120px; height:30px; float:left">First Number</div>
  <div style="width:180px; height:30px; float:left">
  <asp:TextBox ID="txtFirstNumber" runat="server"></asp:TextBox> </div>
   <br /><br />
   <div style="width:120px; height:30px;; float:left">Second Number</div>
   <div style="width:180px; height:30px;  float:left">
   <asp:TextBox ID="txtSecondNumber" runat="server"></asp:TextBox> </div>
    <br /><br />
   <div style="width:120px; height:30px;  float:left">Result</div>
   <div style="width:180px; height:30px; float:left">
   <asp:TextBox ID="txtResult" runat="server"></asp:TextBox> </div>
    <br /><br />
    <div style="width:120px; height:30px;  float:left">
   <asp:Button ID="btnAdd" Width="110px" Text="Add" runat="server" OnClick="btnAdd_Click" />          </div>
 <div style="width:180px; height:30px;  float:left"> 
 <asp:Button ID="btnCancel" Width="110px" Text="Cancel" runat="server" /> </div>
 </div>
  </form>
</body>
</html>


Design: 



SHARE THIS POST

  • Facebook
  • Twitter
  • Myspace
  • Google Buzz
  • Reddit
  • Stumnleupon
  • Delicious
  • Digg
  • Technorati

0 comments: