sharepoint 自定义 EditForm.aspx 未读取正确的项目 ID?
我制作了一个自定义 EditForm.aspx,但是当我单击列表中的某个项目进行编辑时,它每次都会获取列表中第一个项目的数据。标题获得了正确的信息,但自定义列表表单却没有。我检查了参数,有一个 ListItemId 以 QueryString(ID) 作为位置,所以这是正确的。有人知道为什么自定义列表表单没有显示正确的记录吗?
真的很感谢任何帮助。
I made a custom EditForm.aspx but when I click on an item in the list to edit, it gets the data for the very first item in the list, every time. The title gets the right information, but the custom list form doesn't. I checked the parameters and there is a ListItemId that has QueryString(ID) as the location, so that is correct. Anyone know why the custom list form isn't showing the right record?
Really appretiate any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不确定您如何创建自定义页面,但遵循本指南始终对我有用:
http://www.cjvandyk.com/blog/Articles/How%20do%20I%20 -%20Customize%20the%20NewForm.aspx%20或%20EditForm.aspx%20of%20my%20SharePoint%20list.aspx
I'm not sure how you created the custom page, but following this guide always works for me:
http://www.cjvandyk.com/blog/Articles/How%20do%20I%20-%20Customize%20the%20NewForm.aspx%20or%20EditForm.aspx%20of%20my%20SharePoint%20list.aspx
我通过重新创建表单然后传递字段来解决这个问题。然后我找到了这个资源,它解释了我发现的是帖子中的第三个选项列表。
http://www .sharepointblog.com/2010/01/adding-columns-to-custom-list-form-in.html#comment-form
i do a work around to solve this issue by recreating the form and then pasing the fields. and then i found this resource that explain what i discover is the third option list in the post.
http://www.sharepointblog.com/2010/01/adding-columns-to-custom-list-form-in.html#comment-form
我在 SP Designer 中构建了自定义编辑表单。您所需要做的就是(在 SP Designer 中)通过项目 ID 将表单链接到列表。不确定您是否会错过它,因为它是“下一步”流程的一部分。尝试重新创建它并查看它是否有效。
I built custom Edit forms, in SP Designer. All you need to do is (in SP Designer) link the form to the list by Item ID. Not sure you can miss that as is part of the Next-Next process. Try to re-create it and see if it works.