插入sqldatasource的参数 [英] insert parameter of sqldatasource
本文介绍了插入sqldatasource的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个radiolist控件,其中有两个单选按钮。如果使用 sqldatasource control 将单选按钮1选入数据库,我想插入值Left。否则插入正确。
我知道如何使用插入参数插入如下文本框的值。
I have one radiolist control in which i have two radio buttons. I want to insert Value "Left" if radio button one is selected into database using sqldatasource control. else insert right.
I know how to insert value of text box like below using insert parameters.
<asp:ControlParameter ControlID="txt_name_associate" Name="name" PropertyName="Text" Type="String" />
推荐答案
<asp:controlparameter controlid="radiobuttonlist1" name="name" propertyname="SelectedValue" type="String" />
这篇关于插入sqldatasource的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文