CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Passing parameters to a stored procedure - VB.Net

Print topic Send  topic

Author Message
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

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.