Loading ...

test

Who is online?  0 guests and 0 members
home  »  forums   »  codeasp.net community   »  test forums   » test

test

Posts under the topic: test

Posted: 5/16/2010

Contributor 2237  points  Contributor
  • Joined on: 9/24/2009
  • Posts: 172

test code

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AddTextboxValue : System.Web.UI.Page
{
    
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void txt1_TextChanged(object sender, EventArgs e)
    {
        if((!string.IsNullOrEmpty(txt1.Text)) && (!string.IsNullOrEmpty(txt2.Text)))
        {
            txt3.Text = (Convert.ToInt32(txt1.Text) + Convert.ToInt32(txt2.Text)).ToString();
        }
    }
    protected void txt2_TextChanged(object sender, EventArgs e)
    {
        if ((!string.IsNullOrEmpty(txt1.Text)) && (!string.IsNullOrEmpty(txt2.Text)))
        {
            txt3.Text = (Convert.ToInt32(txt1.Text) + Convert.ToInt32(txt2.Text)).ToString();
        }
    }
    
}



Posted: 9/8/2010

Professional 8088  points  Professional
  • Joined on: 4/15/2009
  • Posts: 422

test reply


Page 1 of 1 (2 items)