有关单选按钮的一些代码 [英] some code regarding the radiobutton

查看:63
本文介绍了有关单选按钮的一些代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我使用了三个单选按钮,并保持在组中,并给了一个组名,在编码页中是否可行.


i taken three radiobuttons and i kept in group and given one groupname and in the coding page is this works or not.

if(rbtnofferyes.checked==true)
{
empBM.agreement=true;
elseif(rbtnofferno.checked==true)
{
empBM.agreement=false;
elseif(rbtnoffernot.checked==true
{
empBM.agreement=false;
}
}
}


在数据库方面,我将三个表分别设为是,否和否,并且我还编写了三个存储过程addyes,addno,addnot.
使用上面的代码,我需要如何调用所有这些storedprocedured.

请给我建议.

在此先感谢..


And in database side i take three tables as yes,no,not and also i wrote three storedprocedures addyes,addno,addnot.
with the above code how i need to call all these storedprocedured.

please suggest me.

thanks in advance..

推荐答案

关于调用存储过程的教程

http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson07.aspx [ ^ ]

http://www.java2s.com/Tutorial/CSharp/0560__ADO.Net/CallstoredprocedurewithparametersusingSqlCommand.htm [ ^ ]
Tutorial on calling stored procedure

http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson07.aspx[^]

http://www.java2s.com/Tutorial/CSharp/0560__ADO.Net/CallstoredprocedurewithparametersusingSqlCommand.htm[^]


这篇关于有关单选按钮的一些代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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