How to fix this problem; connection already closed in my function:
SqlConnection con=new SqlConnection(@\"Here is My Connection\"); public void run_runcomma
Check the connection state before opening it:
if (con.State != ConnectionState.Open) con.Open();