hi,

i want to add the text in one text boxto another text in another textbox. i mean ,we enter value 5 in textbox1 and enter value 10 in textbox2 and finally when we click on button the result(15) will be displayed in textbox3. how it is possible. can u tell me the solution . i am using the asp.net and ms sql server 2000 .

r u asking us simple calculation..

TextBox3.Text = (int.Parse(TextBox1.Text.toString()) + int.Parse(TextBox1.Text.toString())).toString();

hope that works for you....

tata docomo..

hi use the following code..

    int res=0;
    res = Convert.ToInt32(TextBox1.Text) + Convert.ToInt32(TextBox2.Text);
    TextBox3.Text = res.ToString();

Let me know your comments. If It solves ur problem mark it as solved.

sorry kameshwari i was in the hurry..

so forgot to use [code] Tag..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.