not able to update connected lookupfield in a list using c# (sharepont)

Jan 26, 2011 at 4:04 AM

IAM not able to update connected lookupfield in a list using c# .please give us some solution its very urgent

Jan 27, 2011 at 5:14 AM
Edited Jan 27, 2011 at 5:15 AM

 

 

    add a reference to the connectedlookupfield.dll in your project

 

 

 ConnectedLookupField objwebsensetype = new ConnectedLookupField(list.Fields, "Websensetype");

objwebsensesubtype.DefaultValue = "10;# VALUE";

item["columnname"]=objwebsensesubtype.DefaultValue;

 

item.update();