Thanks for the help Froggeye but that is exactly what I am doing. You are doing this inside this method right?:
protected void SetupControl()
first I create a new param object
QueryDataParameters prmsSP = new QueryDataParameters();
then I loop through all my params and add them like this:
prmsSP.Add(spNameValueAry[0], spNameValueAry[1]);
and then exactly like your example I set this:
srcSQL.QueryParameters = prmsSP;
I put event log outputs at each step of the way and all my code is being executed and setting the right names and values for each parameter, and it doesn't work. I get a result set when I use the same values to call the same stored procedure in SQL management studio.
Oh and yes I also am setting it to stored procedure not text in the web part settings for my custom web part.
What are you putting into the "Query text" on your custom data source web part?
I am leaving out the connection string and server name which should connect it to the kentico cms database by default according to the documentation. Is that not right?
Maybe its something on my repeater? I set the "Data source name" on the repeater to be the "Web part control ID" of my custom data source. Is there anything else special I need to do that I am missing here?
Some of my parameters are INT but I am passing them in as string so I even added logic to convert to the correct data type before adding them to the param collection. I tried restarting the app and clearing the cache just to make sure, and still "no data found" in my repeater. I am not sure what I am missing here... any idea?
Thanks again,
Matt