public static string Getdata(string Id) { string SQL = "select * from testtable where UserId='"+Id+"'"; DataTable DATA = new DataTable(); SqlDataAdapter DTA = new SqlDataAdapter(SQL,cnnx); DTA.Fill(DATA); if (DATA.Rows.Count > 0) { return DATA.Rows[0].ItemArray[0].ToString(); } return ""; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)