开发者

ListFieldIterator shows ["Title" column value]

开发者 https://www.devze.com 2022-12-15 13:10 出处:网络
I am writing a webpart for SP 2007 with ListFieldIterator. If ControlMode equal to SPControlMode.Edit or SPControlMode.New it works开发者_StackOverflow good. If ControlMode equal SPControlMode.Dispaly

I am writing a webpart for SP 2007 with ListFieldIterator. If ControlMode equal to SPControlMode.Edit or SPControlMode.New it works开发者_StackOverflow good. If ControlMode equal SPControlMode.Dispaly i see ["Title" column value] for Title column and ["SomeColumn" column value] for each other columns.

How I can fix it?


This typically happens when the ListFieldIterator control does not have the itemContext set or the controlmode is unset/not parseable. Have you tried explicitly setting these two attributes? PS. in your question you have "Dispaly", not "Display" - I believe it's a typo

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号