如何在动态数据网站中隐藏插入和编辑页面上的某些字段?

发布于 2024-10-05 16:41:50 字数 128 浏览 0 评论 0原文

我想隐藏一些字段,以便用户无法在插入和编辑页面上为它们赋值,稍后我将在后面的代码中为这些字段提供默认值。

我想仅在插入页面中隐藏这些字段,但希望在列表页面上看到它们,例如createdAt列。

如何做到这一点?

I want to hide some fields, so that the user can't put value for them on insert and edit pages, and I will give these fields default values on code behind later.

I want to hide these fields just in insert pages but want to see them on the list pages, such as the createdAt column.

How to do this?

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

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

发布评论

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

评论(1

转身泪倾城 2024-10-12 16:41:50

c#bits 的 Steve Naughton 有一种方法可以使用 DD 站点的有用扩展来实现此目的:
请参阅

Steve Naughton at c# bits has a way of doing this using a useful extension to DD sites :
See this

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