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

VulpesRank #55 · 29.2K reputationPosted Apr 19, 2014, 4:51 AM EDT
Ranjit PowarRank #553 · 4.4K reputationPosted Apr 19, 2014, 6:34 AM EDT
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();
Abhay ShankerRank #375 · 6.7K reputationPosted Apr 19, 2014, 9:05 AM EDT