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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 19, 2013, 12:40 AM EDT
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);
}
}
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 19, 2013, 12:19 AM EDT
Try like this
Regards,
Iftikar
Suresh Babu113 reputationPosted Aug 19, 2013, 12:21 AM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Aug 19, 2013, 12:26 AM EDT
my code is in
no error but its not working.
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 19, 2013, 12:40 AM EDT
Regards,
Iftikar
selvi subramanianRank #2,007 · 723 reputationPosted Aug 19, 2013, 3:18 AM EDT