No Title Yet
Tuesday, 22 June 2010
Simple addition code in ASP.NET
protected void Button1_Click(object sender, EventArgs e)
{
int a, b, sum;
a = int.Parse(TextBox1.Text);
b = int.Parse(TextBox2.Text);
sum = a + b;
TextBox3.Text = "";
TextBox3.Text = sum.ToString(TextBox3.Text);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment