in textbox i use default value as (14.5/100) i never give the value in run time
i need to multiply the value with next textbox . given value in source code .
need to multiply the default value in source code
my design is
a | |
b | |
a+b | |
mul | AutoPostBack="True"> |
multl |
my coding is
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class math : System.Web.UI.Page
{
REMO sel = new REMO();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
// float c= float.Parse(TextBox1.Text) + float.Parse(TextBox2.Text);
//TextBox3.Text = Convert.ToString(c);
//float s = c * float.Parse(TextBox4.Text);
//float s = ((c * float.Parse(TextBox4.Text)));
//TextBox5.Text = Convert.ToString(s);
}
protected void TextBox4_TextChanged(object sender, EventArgs e)
{
double guna = int.Parse(TextBox3.Text) * (14.5 / 100);
TextBox5.Text = Convert.ToString(guna);
}
protected void TextBox2_TextChanged(object sender, EventArgs e)
{
float c = float.Parse(TextBox1.Text) + float.Parse(TextBox2.Text);
TextBox3.Text = Convert.ToString(c);
}
}
textbox3* textbox4 as default value (14.5/100) =textbox5
in run time i given the value as 14.5/100 my coding is working but. i need textbox4 value as default text as 14.5/100 used in source code. multiply with textbox3. and need to show the output in textbox5


Iftikar HussainRank #423 · 5.9K reputationPosted Aug 20, 2013, 12:09 AM EDT
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 19, 2013, 10:20 PM EDT
Try like this
Regards,
Iftikar
Pankaj Kumar198 reputationPosted Aug 19, 2013, 10:23 PM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Aug 19, 2013, 10:26 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 19, 2013, 10:46 PM EDT
Regards,
Iftikar
selvi subramanianRank #2,007 · 723 reputationPosted Aug 19, 2013, 11:05 PM EDT
its already i given in my source as text="(14.5/100)" .if my textbox3 answer cum after that i need the textbox5 value
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 19, 2013, 11:24 PM EDT
can you provide a clear details. Means in which textbox you want to show the text and what is the requirements..
selvi subramanianRank #2,007 · 723 reputationPosted Aug 19, 2013, 11:32 PM EDT
textbox1+textbox2=textbox3
now i give 14.5/100 in source code as text =(14.5/100)
refer my above code.
i need to show the multiply value in textbox5....
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 19, 2013, 11:39 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 19, 2013, 11:42 PM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Aug 19, 2013, 11:43 PM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Aug 19, 2013, 11:54 PM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 19, 2013, 11:55 PM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Aug 19, 2013, 11:59 PM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Aug 20, 2013, 12:07 AM EDT