如何在SQL Server中存储单选按钮值 [英] How to store radio button values in sql server

查看:197
本文介绍了如何在SQL Server中存储单选按钮值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI ..
我有两个单选按钮,一个是专用按钮,另一个是杠杆按钮.如果有人单击专用按钮,我想存储"true",如果有人单击杠杆按钮,它将在数据库中存储"false".有人可以在此

HI..
I have two radio button one is dedicated and another is leveraged.I want to store "true"if someone clicks dedicated and if someone clicks leveraged it will store "false" in the database.Can somebody help me in this

推荐答案

如果要将单选按钮值直接映射到数据库列,则有两种解决方案:

解决方案1:使用ASP .NET动态数据
解决方案2:使用LInQ实体框架

两种解决方案都包含内置代码.开发人员编写的代码要少得多.
If you want to map the radio button value directly to the database columns, then there are 2 solutions:

Solution 1: Using ASP .NET Dynamic Data
Solution 2: Using LInQ to Entity framework

Both solutions contains built in code; very less coding from the developers.


这篇关于如何在SQL Server中存储单选按钮值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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