Author: rejinkumar | Posted on: 4/2/2010 6:14:02 AM | Views : 244

Hello,
I have strange problem. In one of my project I used the "ParameterCollection" class to pass a number of SQL Command parameter to a method. In the first system I used like
ParameterCollection coll1 = new ParameterCollection();
coll1.Add(new Parameter("categoryName", DbType.String, categoryName));
It works fine, but when I try the same code in a second computer it generates an error

"The best overloaded method match for 'System.Web.UI.WebControls.Parameter.Parameter(string,System.TypeCode,
string)' has some invalid arguments"

This confused me for a while, finally I figure out the problem when I tried the following at the new computer

ParameterCollection coll1 = new ParameterCollection();
coll1.Add(new Parameter("categoryName& ...

Go to the complete details ...