public string user(AddInfoModel info) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["MyConsString"].ConnectionString); con.Open(); SqlCommand cmd = new SqlCommand("Resource_sp", con); cmd.CommandType = CommandType.StoredProcedure; SqlDataReader reader = cmd.ExecuteReader(); if (reader.Read()) { FirstName.Text = reader["FirstName"].ToString(); LastName.Text = reader["LastName"].ToString(); reader.Close(); con.Close(); } } } }
textbox
Datagrid
Listbox
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)