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 -> ASP

 Stored procedure invoked from button

Print topic Send  topic

Author Message
10mas

Posts: 3
Posted: 08/28/2007, 12:33 PM

Hello, I use the following code to launch a stored procedure with a parameter:
Dim sSQL
Dim myParameter
DIM strPolicyType
Dim DBConnection1
Set DBConnection1 = New clsDBConnection1
DBConnection1.Open
myParameter = "13232"
sSQL= "EXEC UnValidateStudy;1 " & myParameter
DBConnection1.Execute(sSQL)
If DBConnection1.State = adStateOpen Then DBConnection1.Close
Set DBConnection1 = Nothing

when I put this code into the Button1_BeforeShow(Sender) Function the procedure is launched but when I put the code onto Button1_OnClick(Sender) 'Button1_OnClick Function the procedure doesn´t work.

Any solution?

thanks in advance
View profile  Send private message

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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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