Getting values from SharePoint calculated column

Here you go for getting values from the Calculated column.


SPFieldCalculated month = (SPFieldCalculated)oitem.Fields["Month"];

SPFieldCalculated year = (SPFieldCalculated)oitem.Fields["Year"];


lblOrderConformation.Text = "ORDER CONFIRMATION IN - " + month.GetFieldValueAsText(oitem["Month"]) + " " + year.GetFieldValueAsText(oitem["Year"]);



Hope this will help you ....

Comments

Popular posts from this blog

Difference between Application Page and Site Pages

Programmatically Upload document using Client object model – SharePoint 2010

Creating a Document Library in SharePoint hosted APP using SharePoint 2013 REST API