CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 asp .net c# stored procedure... retrieve value of output parameter?

Print topic Send  topic

Author Message
bogdantc

Posts: 36
Posted: 09/22/2006, 12:31 AM

hello,

can someone more experienced in CCS give me an example of how to retrieve the value of an output parameter from a stored procedure? there are only 3 weeks since I am using CCS and I am not yet aware of all it's capabilities.

thank you.
_________________
Able was I ere I saw Elba
View profile  Send private message
Stan
Posted: 09/22/2006, 5:40 AM

Where are you using SP call? If this is used as datasource of form, you will be able to select "Datasource parameter" source type for control and then select the name of desired parameter.

In custom code you should add it to collection firstly:

command.AddParameter("@out_param",null,ParameterType._Text,ParameterDirection.Output,0,0,10)

then execute your code and you should be able to get the value of parameter with:

CType(command.Parameters("@out_param"),IDataParameter).Value

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.

MS Access to Web

Convert MS Access to Web.
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.