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