![]() |
Admin 9/15/2020 |
Did you try the hard-coded value instead of using values array? |
D
|
DWill author 9/16/2020 |
Did you try the hard-coded value instead of using values array? You can blame the manual all day long but you cannot even copy and paste it properly. There is no such thing as CustomerQuery, the correct function name is CustomQuery. Also, if manual says you need to use values["FieldName"].ToString() you cannot replace it with values[12345] which is meaningless. Test your SQL query outside of ASPRunner.NET first, make sure it works and then copy and paste it into your code. This is what hardcoded means. Once it works you can replace the hardcoded value of the parameter with the variable. More info: https://xlinesoft.com/asprunnernet/docs/how_to_execute_stored_procedures_from_events.htm
|
![]() |
Admin 9/16/2020 |
Just start with the hardcoded SQL query that contains your stored procedure call. Things are always a bit easier once you got the most basic example working. |
![]() |
jadachDevClub member 9/16/2020 |
Here is a sample passing 2 parameters. Make sure the order matches your stored procedure. tDAL.CustomQuery("EXEC dbo.ImportProviderPreferences '" + keys["ProviderID"].ToString() + "','" + XSession.Session["UserID"].ToString() + "'"); |