将radiobutton值添加/加载到Sql数据库 [英] add/load the radiobutton value to Sql database
本文介绍了将radiobutton值添加/加载到Sql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
想象一下,我有这样的应用程序。
[图片点击]
我想将此屏幕中的值添加到我的数据库中。我正在使用SqlQuery(插入...)来添加这些记录。但问题是我如何添加来自radioButton的值,如果它的Single / Married?
我还需要从表中为用户加载值(在列表框中选择)包括状态值..
有没有人可以帮我解决这个问题。
Imagine i have application like this .
[Picture on click]
I want to add the values from this screen to my database. I'm using SqlQuery ("Insert into ... ") to add those records. But the problem is how i add the value from radioButton if its Single/Married ?
Also i need to load values from the table for user (Selected in listbox) including the status value..
Does anyone can help me out with this.
推荐答案
请阅读我对这个问题的评论。
你可以抓住 Radiobutton [ ^ ]状态更改。使用它!
Please, read my comment to the question.
You can "catch" Radiobutton[^] state change. Use it!
这篇关于将radiobutton值添加/加载到Sql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文