如何编写单选按钮列表的选择查询&文本框 [英] how to write select query for radiobuttonlist & textbox

查看:79
本文介绍了如何编写单选按钮列表的选择查询&文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


任何人都可以消除我对如何编写用于匹配2个控件的值的选择查询的疑问.例如,单选按钮列表和文本框.
也就是说,如果2个控件的值匹配,那么它应该从数据库表中检索一个字段.


can anyone clear my doubt of how to write the select query for matching 2 control''s value.say, radiobuttonlist and textbox.
i.e. if the value of 2 controls match then it should retrieve a field from a database table.

推荐答案

尝试以下操作:

Try this:

string txtvalue=textbox1.text;
string radiovalue=radio1.SelectedItem.Value;
if(txtvalue==radiovalue)
{

//your select query
}



希望对您有所帮助:)

有关更多查询,请在此处评论!



hope it helps :)

for further queries comment here!


这篇关于如何编写单选按钮列表的选择查询&文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆