Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

SPFieldMultiChoice Unexpected Error

  Asked By: Sonya    Date: Oct 13    Category: Sharepoint    Views: 1494

I'm attempting to use the SPFieldMultiChoice for the first time.. I
have a working webpart but when I add in the below code, I get an
'Unexpected Error'

SPList DataList = web.Lists["Data Sheets"];

SPFieldMultiChoice field =
(SPFieldMultiChoice)DataList.Fields.GetFieldByInternalName("Specification");


When I comment out the second line above the page loads fine. I
temporarily have Full trust set. And I verified that Specification is
a valid field. Am I missing something???

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on SPFieldMultiChoice Unexpected Error Or get search suggestion and latest updates.