更改sqldatasource的默认参数 [英] changing default parameter of sqldatasource
本文介绍了更改sqldatasource的默认参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有2个ASPxComboBox控件。基于一个组合,我想填补另一个。我正在使用Ajax回调概念。有了它,在代码背后,我能够获得第一个组合的选定值。然后,我想知道,如何使用select存储过程绑定连接到SqlDataSource的第二个组合。我想更改SqlDataSource&的默认值。然后绑定它。我做了如下。但无法绑定。
I have 2 ASPxComboBox controls. Based on one combo, I want to fill the other. I'm using Ajax callback concept. With that, in code behind, I'm able to get the selected value of first combo. And then, I want to know, how to bind the second combo which is connected to a SqlDataSource with select stored procedure. I want to change the default value of the SqlDataSource & then bind it. I did as follows. But unable to bind.
SqlDataSource2.SelectParameters["input4"].DefaultValue = "combo1Value";
secondCombo.DataBind();
提前致谢
Thanks in advance
推荐答案
这篇关于更改sqldatasource的默认参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文