/ Published in: C#

Snip it if you keep forgetting how its done.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
using System.Data; using System.Data.SqlClient; using System.Configuration; var connectionStr = ConfigurationManager.ConnectionStrings["myconnection"].ConnectionString; cmd.Connection.Open(); cmd.CommandText = "SELECT name, lastName FROM myTable"; adapter.Fill(users); cmd.Connection.Close(); cmd.Connection.Dispose();
Comments
