How to fix this problem; connection already closed in my function:
SqlConnection con=new SqlConnection(@\"Here is My Connection\"); public void run_runcomma
Your connection string is opened. You can use code to check it:
if(cmd.Connection.State != ConnectionState.Open) cmd.Connection.Open();