Hi,
I am having trouble running a stored procedure through the code behind. I am getting an error: "The ConnectionString property has not been initialized."
Here is the code:
1 protected void GoButton_Click(object sender, EventArgs e)
2 {
3
4 SqlCommand cmd = new SqlCommand("spSetCurrentSeason", new SqlConnection(ConfigurationManager.AppSettings["ConnectionString1"]));
5 cmd.CommandType = CommandType.StoredProcedure;
6
7 cmd.Parameters.AddWithValue("@SeasonID", SeasonTextBox.Text);
8
...
Go to the complete details ...