Hi,
I want to make enter Textbox value in multiplication of 2,the value in the textbox is retrieved from database.
This is my code:
int a = int.Parse(textBox3.Text);
int b = int.Parse(textBox3.Text);
int c = a + b;
textBox3.Text = c.ToString();
I had retrieved value from the database in Textbox as follow:
SqlDataAdapter da = new SqlDataAdapter("select * from Future where Script_Name='" + comboBox4.Text + "'", con);
DataSet ds=new DataSet();
da.Fill(ds ,"Future");
foreach (DataRow r in ds.Tables["Future"].Rows)
{
textBox3.Text = r["Lot"].ToString();
}
The data is successfully retrieved But,after multiplication(above code) I am getting 0 value in the Textbox,Kindly help me.
Regards,
Deven