andreas domevscek

andreas domevscek

  • NA
  • 21
  • 8.5k

Wrong Type of Argument

Oct 6 2014 5:48 PM

I have next function
GetData("CasCadingDropDownList.spGETCOUNTRIES", "cur_countries",
new OracleParameter ("pContinentId", ddlContinents.SelectedValue));
pcontinentid is number


Defining GetData:
private DataSet GetData(string spName, string crsName, OracleParameter spParameter)
I add in source
cmd.Parameters.Add(spParameter).Direction = ParameterDirection.Input;


But my type of spParameter is wrong! How can i change this?



Answers (9)