a | |
b | |
a+b |
textbox3=textbox1+textbox2;
i need it in on textchanged event
a | |
b | |
a+b |
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Aug 19, 2013, 4:40 AM
in aspx:
a
b
a+b
in .cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Default3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void TextBox2_TextChanged(object sender, EventArgs e)
{
float amm = (float.Parse(TextBox1.Text) + float.Parse(TextBox2.Text));
TextBox3.Text = Convert.ToString(amm);
}
}
selvi subramanianPosted Aug 19, 2013, 7:18 AM
Iftikar HussainPosted Aug 19, 2013, 4:40 AM
Regards,
Iftikar
selvi subramanianPosted Aug 19, 2013, 4:26 AM
my code is in
no error but its not working.
Suresh BabuPosted Aug 19, 2013, 4:21 AM
Iftikar HussainPosted Aug 19, 2013, 4:19 AM
Try like this
Regards,
Iftikar