在树形视图中将复选框的值插入数据库 [英] insert values of checkboxes in a treeview to database

查看:79
本文介绍了在树形视图中将复选框的值插入数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我将treeview的选中复选框的值保存到表中
在数据库中

请帮我提供插入代码

please help me out in saving the values of checked checkboxes of a treeview to a table
in database

please help me with the insert code also

推荐答案

您好Jaideep,

这是我从您的评论中了解到的.

您正在显示带有复选框的菜单和子菜单的树状视图,并且想要为该特定用户保存所选复选框的值.

在这种情况下,您可以用逗号分隔的格式存储数据.
并且在获取数据时,在后端使用拆分功能.
对于拆分功能,此 LINK 会为您提供帮助.

一切顺利!
Hi Jaideep,

This is what I understood from your comment.

You are displaying treeview of menus and submenus with check boxses and you want to save values for selected check boxses for that particular user.

In this case, you can store data in comma separated format.
And while fetching that data use split function at the back end.
For split function, may this LINK will help you.

All The Best!


这篇关于在树形视图中将复选框的值插入数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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