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
change
cmd.Parameters.Add(new SqlParameter("QUALID", val));
to either
cmd.Parameters.Add(new SqlParameter("@QUALID", val));
or
cmd.Parameters.Add("@QUALID", SqlDbType.WhatFitsYourDB).Value = val;
and you should be good to go. Your problem is that you are missing a '@' in the paramter name