9
Answers

Wrong Type of Argument

Photo of andreas domevscek

andreas domevscek

10y
1.4k
1

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)