运行时可定制的asp.net应用程序

发布于 2024-10-05 02:48:57 字数 400 浏览 0 评论 0原文

我目前正在开发一个 asp.net 应用程序,粗略地说,它对存储在数据库中的实体进行“CRUD”操作。

我想让这个应用程序可由用户自己定制:一些用户(例如具有一些“管理员”角色) 应该能够向默认应用程序实体添加一些字段,甚至将一些新的自定义实体链接到现有实体。

我希望应用程序本身可以进行这种自定义,即在运行时。将有一个专门的页面来定义新字段 和新桌子。如果能够设计如何显示这些自定义数据(表单或网格......),那么

有人对此有一些经验吗?是否存在任何框架?

将有关自定义的所有信息存储在应用程序数据库中并在每次重新启动应用程序时解释该信息是否更好?还是在数据库中动态生成新表/字段更好
生成/编译代码(asp、C#)?

这种定制存在于“Sharepoint”或“Salesforce”中。

I'm currently working on an asp.net application which roughly speaking makes 'CRUD' operations on entities stored in a database.

I would like to make this application customizable by the users themselves: some users (e.g. with some 'admin' roles)
should be able to add some fields to the default applications entities or even link some new custom entities to the existing one.

I want this customisation to be possible form the application itself, that is at runtime. There would be a dedicated page to define new fields
and new tables. It would also be nice to have the possibility to design how to display these custom data (a form or grid...)

Has anybody some experience on that? Does any framework exist?

Is it better to store all information concerning the customization in the application database and interpret that information each time the application is restarted? Or is it better to dynamically generate new tables/fields in the database and
generate/compile code (asp, C#)?

That kind of customization exist in 'Sharepoint' or 'Salesforce'.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

骄傲 2024-10-12 02:48:58

您可以使用 XSLT 从管理页面上定义的 XML 数据动态生成 HTML 页面。

创建一个允许您创建新字段的管理页面。将该页面上的信息存储在
XML 文档并将其保存在数据库中。

在使用自定义字段呈现网格或页面时,使用 XSLT 将 XML 转换为 HTML。

有关详细信息,请参阅这些链接 -

http://aspalliance.com/1296_Transform_XML_into_HTML_Using_XSLT.2
http://www.webdevelopersjournal.com/articles/xml_to_html.html

You can use XSLT to generate HTML pages dynamically from XML data defined on admin page.

Create an admin page which lets you create new fields. Store the information on that page in
an XML document and save it in your database.

While rendering your grid or page with custom fields , transform your XML into and HTML using XSLT.

See these links for more information -

http://aspalliance.com/1296_Transform_XML_into_HTML_Using_XSLT.2
http://www.webdevelopersjournal.com/articles/xml_to_html.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文