Benjamin Krajmalnik
|
Posted: 08/30/2004, 12:59 PM |
|
I am converting an application from ASP to VB.Net.
I have a few places where I call stored procedures. The first one is to do
a custom insert. Using the Stored Procedure parameter wizard, I chose type
"Expression" and value = NULL. This worked fine for ASP, but is generating
errors in VB.Net.
The generated code looks along the lines of:
tblServiceOrdersData.ExprKey371 = TextParameter.GetParam(NULL)
Any ideas will be appreciated.
I also have another somewhat related question. I have a set of class
wrappers around stored procedure calls. Each class wrapper is in its own
file.
WHat namespace do I need to generate them with to have the classes
accessible, and how do I include them into the project so they are generated
in the application DLL?
ANy help will be deeply appreciated.
Regards,
Benjamin
|
|
|
Stan
|
Posted: 08/30/2004, 11:50 PM |
|
Hi Benjamin
The VB keyword for the null parameters is 'Nothing', not 'NULL'
For the second problem you can try the following solution
1. Copy your files in the CCS project folder.
2. In the Project publishing settings select "All files with extensions" mode
After this your files will be compiled with CCS application automatically.
Stan
|
|
|
|