CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Stored Procedures using ASP.NET and C#?

Print topic Send  topic

Author Message
Dennis
Posted: 05/28/2002, 8:08 AM

I'm trying to take the item I select from a dropdownlist (which is a lookup table), run a SP and then assign that value to an ASP Label control. How do I do that?

Here is what I have so far but I get the following error:

sSQL = "tcts_category1('" & tblBaseTool1_Category & "')";
tblBaseTool1_LUD01.SelectedIndex = tblBaseTool1_Category.SelectedIndex;

error: Operator '&' cannot be applied to operands of type 'string' and 'System.Web.UI.WebControls.DropDownList'

Thanks!
SN
Posted: 05/28/2002, 10:13 AM

Shouldn't this line be
sSQL = "tcts_category1('" & tblBaseTool1_Category & "')";

changed to this

sSQL = "tcts_category1('" & tblBaseTool1_Category.SelectedIdex.ToString() & "')";




Dennis
Posted: 05/28/2002, 11:36 AM

SN,

I tried your suggestion and it does appear to be better but I still can't get the value passed to the other DropDownBox. Any other ideas?
CodeCharge Support
Posted: 05/28/2002, 12:35 PM

If you are referring to CodeCharge Studio, Stored Procedures weren't supported in C# as of yet, but should be available in tomorrow's Beta5 release.

If you are referring to CC 2.0, please consider contacting our support at support.codecharge.com

Regards,

Konrad

   


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.