Reading DataSet

DataSet resembles database. DataTable resembles database table, and DataRow resembles a record in a table. If you want to add filtering or sorting options, you then do so with a DataView object, and convert it back to a separate DataTable object. If you’re using database to store your data, then you first load a database … Read more

Direct method from SQL command text to DataSet

public DataSet GetDataSet(string ConnectionString, string SQL) { SqlConnection conn = new SqlConnection(ConnectionString); SqlDataAdapter da = new SqlDataAdapter(); SqlCommand cmd = conn.CreateCommand(); cmd.CommandText = SQL; da.SelectCommand = cmd; DataSet ds = new DataSet(); ///conn.Open(); da.Fill(ds); ///conn.Close(); return ds; }

dataset vs .data – Difference?

dataset is a native property of an element that contains the data attributes, it’s a new(ish) addition and as such is only supported in IE11+, Chrome 8+, FF 6+ etc. A more cross browser solution would be to get the attribute directly webappData.getAttribute(‘data-rating’); data() is a jQuery method, and other than using the HTML5 data … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)