I resolved the problem. With this code it works:
SPWeb myweb = SPControl.GetContextWeb(Context);
myweb.AllowUnsafeUpdates = true;
SPList list = myweb.Lists["List_name"];
SPListItem item = list.Items[0];
item.["State"] = 1;
item.Update();
output.Write(item["State"].ToString());
Hi all!
I added a new field to the custom list (custlist) by adding the following entry to the schema.xml:
<Field Type="Integer" Name="State" DisplayName="State" Sealed="TRUE" Hidden="TRUE" ReadOnly="FALSE"/>
I set hidden=true because I need this field completly hidden to the UI. But when I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.