在SharePoint开发过程中会遇到给比如Custom Page Layout添加自带的Web Control,但往往不知用哪个控件。用错的话会给出:An unexpected error has occurred。
下表为Column Data Type之对应关系。
| SharePoint data type | SharePoint Web Control |
| Single line of text | TextField |
| Multiple lines of text |
|
| PlainText | NoteField |
| Rich Text | RichTextField |
| Enhanced Rich Text | RichTextField |
| Choice |
|
| Dropdown | DropDownChoiceField |
| Radio Button | RadioButtonChoiceField |
| Number | NumberField |
| Currency | CurrencyField |
| Date and Time | DateTimeField |
| Lookup |
|
| Single Item | LookupField |
| Multiple Items | MultipleLookupField |
| Yes/No | BooleanField |
| Person or Group | UserField |
| Hyperlink or Picture | UrlField |
| Calculated | UrlField |
| Business data |
|
摘自
http://www.hezser.de/blog/archive/2007/04/29/how-to-use-the-sharepoint-web-controls.aspx

本文介绍了在SharePoint开发中如何正确使用各种WebControl,包括TextField、NoteField等,并提供了不同数据类型对应的WebControl列表,避免开发过程中出现错误。
308

被折叠的 条评论
为什么被折叠?



