如何在动态数据网站中隐藏插入和编辑页面上的某些字段?
我想隐藏一些字段,以便用户无法在插入和编辑页面上为它们赋值,稍后我将在后面的代码中为这些字段提供默认值。
我想仅在插入页面中隐藏这些字段,但希望在列表页面上看到它们,例如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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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