Ajax

Design





using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
     protected void Button1_Click(object sender, EventArgs e)
    {
        int a, b, c;
        a = Convert.ToInt16(txtfirst.Text);
        b = Convert.ToInt16(txtsecond.Text);
        c = a + b;
        System.Threading.Thread.Sleep(3000);
        txtresult.Text = c.ToString();
    }
            

Loading..

Output

Output Example