You are creating the SqlParameter Object but you're not adding it to the Command Object.
Sorry I don't have the time to look it up... but there should be some sort of method of the objCommand to add parameters to it.
something like
objCommand.Parameter.Add("@Name", SqlDbType.Int, 4)
objCommand.Parameters["@Name"].Value = ID.ToString
the_carpenter
Junior Poster in Training
65 posts since Aug 2010
Reputation Points: 32
Solved Threads: 11
hi uzn. Try inserting this line:
objCommand.Parameters.Add(objParam1)
crapulency
Junior Poster in Training
53 posts since Jun 2010
Reputation Points: 10
Solved Threads: 18