Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best overloaded method match error

Status
Not open for further replies.

PNeems

Programmer
May 17, 2008
19
US
I am getting this error when I am compiling my code and I am not sure why. The error is
CS1502: The best overloaded method match for 'CatalogAccess.EvalRegion(int)' has some invalid arguments

This is the line of code causing the error
String title = CatalogAccess.EvalRegion(regionID);

This is the method being called

public static String EvalRegion(int regionID)
{
DbCommand comm = GenericDataAccess.CreateCommand();
comm.CommandText = "EvaluateRegion";

DbParameter param = comm.CreateParameter();
param.ParameterName = "@REGIONID";
param.Value = regionID;
param.DbType = DbType.Int32;
comm.Parameters.Add(param);

DataTable dt = GenericDataAccess.ExecuteSelectCommand(comm);
string name = dt.Rows[0][0].ToString();
return name;


}
Any ideas on why I am getting there error. Am i missing something here?
 
I think i figured it out...Nevermind

Thanks! sorry for the post
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top