ASP.NET C# Must declare the scalar variable

后端 未结 6 1766
一生所求
一生所求 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:39

    You are missing the "@" where you add the parameter:

    SqlParameter("@QUALID", val)
    

提交回复
热议问题