ASP.NET C# Must declare the scalar variable

后端 未结 6 1803
一生所求
一生所求 2021-01-17 23:56

I am trying to populate a GridView using a method called PopulateGrid() (below) but keep getting the same server error "Must Declare the scalar variable "@QUALID&q

6条回答
  •  长发绾君心
    2021-01-18 00:36

    Try adding the @ to your sql param like so

     cmd.Parameters.Add(new SqlParameter("@QUALID", val));
    

提交回复
热议问题