Adding SqlCommand parameters in C# – Asp.net
Please help me to add paramaters in this queryToDB SqlCommand this is the code cons = new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString); cons.Open(); SqlCommand queryToDB = new SqlCommand("INSERT INTO [dbo].[FileUploadDBs] values (@Name, @Path, @Blasted, @CreatedBy, @CreatedDate)", cons); //param.ParameterName "@Name"; //param.Value = prefix + extension;…