if sql table like below
sno qunty rate
1 5 6
2 4 3.5
multiply coloum2 and coloum3
i have two textbox1,2
read
first textbox,second text box dispaly like ( qunty * rate )5*6= 30
firsttextbox=30,secondtextbox=14
o/p like
30
14
Loading
VulpesPosted Apr 19, 2014, 8:51 AM
Abhay ShankerPosted Apr 19, 2014, 1:05 PM
Ranjit PowarPosted Apr 19, 2014, 10:34 AM
DataSet ds;
da = new SqlDataAdapter("Select qunty * rate as Total from Tablename ", con);
ds = new DataSet();
da.Fill(ds);
textbox1.Text=ds.Tables[0].Rows[0]["Total"].ToString();
textbox2.Text=ds.Tables[0].Rows[1]["Total"].ToString();