使用wcf将复选框作为值插入表 [英] inserting checkbox as a value to table by using wcf

查看:52
本文介绍了使用wcf将复选框作为值插入表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...

我正在开发一项wcf服务.我在其中创建表,添加新表,删除表并在网格视图中显示所有内容.对于每个表,我将值插入一列而不是值中,我需要插入复选框...我不知道如何在wcf服务内部执行此操作...请帮助我执行此操作....


谢谢:)

Hi...

I am developing one wcf service. In that I am creating tables, adding new tables, deleting tables and display all in grid view. for each tables I am inserting values, in one column instead of values I need to insert checkbox... I dont know how to do this in inside the wcf service... Please help me to do this....


Thanks:)

推荐答案

您需要转换复选框值,即选中或未选中为布尔值并将其存储在表中.
从数据库中检索此布尔值后,将其更改回选中或取消选中并显示它.
You need to convert the checkbox value i.e. checked or unchecked to boolean and store it in your table.
Once you retrive this boolean value from the database, change it back to checked or unchecked and display it.


这篇关于使用wcf将复选框作为值插入表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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