Home Forums Programming General The parameterized query expects the parameter '@Id', which was not supplied. RE: The parameterized query expects the parameter '@Id', which was not supplied.

  • I'm not familiar wirth C#, but shouldn't you pass a value for the ID parameter (see bold part below)?

    <snip>

    cmd.Parameters.Add("@Id",SqlDbType.Int).Value = Id;

    cmd.Parameters.Add("@Name", SqlDbType.NVarChar, 100).Value = name;

    <snip>

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **