Home > Forum > ASP.NET > error in data

error in data

by celv   on Nov 01, 2014   Category: ASP.NET  |  Views: 905    |  Points: 5   |  Bronze 
  Reply
private void etra()
{
con = new SqlConnection("Data Source=.\\SQLEXPRESS;Initial Catalog=bramandam;Persist Security Info=True;Integrated Security=True");
string ertree = "SELECT SUM(extra) as ersxtt FROM salcal where id='" + ttd.Text + "'";
DataSet d = new DataSet();
d = mvl.GETDS(ertree);
if (d .Tables[0].Rows.Count != 0)
{
TextBox44.Text = d .Tables[0].Rows[0]["ersxtt"].ToString();

}
else if (d .Tables[0].Rows.Count == 0)
{
TextBox44.Text = "0";
}
Session["extt"] = TextBox9.Text;
}

Bookmark and Share:
 
  User Reply  | Ask a question  |   Reply 
  Re :error in data   
by Thamil
on Nov 1 2014 1:01PM
Points : 10
Gold 
hi Celv,

whats the error you are getting with above code?

Recent Post

Latest Posts