<httpRuntime maxRequestLength="500000"/>
Thank you for posting at Dotnetfunda [Administrator]
string strCon = _connectionString;//cms.Connection.ConnectionString; SqlConnection objCon = new SqlConnection(strCon); SqlCommand objCom = new SqlCommand(sqlText, objCon); objCom.CommandTimeout = 0; try { objCon.Open(); objCom.ExecuteNonQuery(); } catch(sqlException ex) { //print the ex.Message here } finally { objCon.Close(); }
Login to post response