Sunday, 1 September 2013

Addition of 2 numbers in Asp.net

1. Open Visual Studio
2. Create a New Website
3. Create Web Page




4. Add Code to Click Event of Button Addition

 protected void Button1_Click(object sender, EventArgs e)

    {
        Label1.Text(Convert.ToInt32(txtnum1.Text)+Convert.ToInt32(txtnum2.Text)).ToString();

    }


No comments:

Post a Comment

Thanks

SQL server tricky questions