I need to populate my textfields from values in database. I also need navigation buttons to scroll through all records, similar to an access form. Below is what I have on the OnLoad event:
Code:
protected void Page_Load(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(GetConnectionString()); SqlCommand cmd = new SqlCommand("SELECT * from CriminalHistoryCriteria", conn); cmd.Connection.Open(); cmd.ExecuteReader(); cmd.Connection.Close(); cmd.Connection.Dispose(); }
Comment