我们如何将单选按钮值加载到数据库中 [英] how can we Load Radio Button Value Into Database

查看:89
本文介绍了我们如何将单选按钮值加载到数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将单选按钮值加载到数据库中
可以用sql查询提供任何帮助....

我用了这一个代码..但不起作用
字符串sql ="UPDATE resperson SET kfri =""+ rb1.Checked +"''WHERE resid =" + tbrid.Text +";

how can we Load Radio Button Value Into Database
can any one help with sql query....

i used this one code..but not working
string sql = " UPDATE resperson SET kfri = ''" + rb1.Checked +"'' WHERE resid = ''" + tbrid.Text + " '' ";

推荐答案

"kfri"列的数据类型是什么?如果是varchar类型,则应该没有任何问题.另外,如果您可以在代码行(您已发布)中发布"sql"字符串的值.
What is the datatype of "kfri" column? If it''s varchar type you should not have any problem. Also if you can post the value of "sql" string post the line of code (you posted).


这篇关于我们如何将单选按钮值加载到数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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