在GUI中进行的动态更改(添加/删除控件)应该反映在数据库中..! [英] Dynamic changes (add/delete controls) made in GUI should be reflected in the database..!

查看:99
本文介绍了在GUI中进行的动态更改(添加/删除控件)应该反映在数据库中..!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


嗨朋友们,



我的项目中有一些复杂的要求。



案例如下:



要求是这个页面的管理员必须能够按照自己的意愿设计表格,然后保存。



网站管理员必须能够添加/删除控件(例如文本框,标签,单选按钮,复选框) ,下拉列表等)动态地和相应的变化
也必须在数据库中看到。



我可以添加动态控件但无法保存它们。



建议保存由admin设计的表单[即保存控件&而不是在DB中输入的数据]。



我应该使用XML吗?





解决方案可以在   ASP.NET
/ JQUERY / AJAX

解决方案

您可以使用的一个选项是将控件映射到数组并将数组的值存储在数据库中。


在运行时读取数组的值并相应地显示控件。


Hi Friends,

I have some complex requirements in my project.

The case is like this :

The requirement is that the admin of this page must be able to design the form as he wants & then save it.

The admin of the site must be able to add/delete controls (e.g. text-box, label, radio-button, check-box, drop-down list, etc.) dynamically & the respective changes must be seen in the database too.

I am able to add dynamic controls but not able to save them.

Suggest some idea to save the form designed by admin [i.e. save the controls & not the data entered in DB].

Should I use XML ?

SOLUTION CAN BE IN  :  ASP.NET / JQUERY / AJAX

解决方案

One option you can use is to map the control to an array and store the value of array in database.

At runtime read the value of array and display the control accordingly.


这篇关于在GUI中进行的动态更改(添加/删除控件)应该反映在数据库中..!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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