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

This content database has a schema version which is not supported in this farm

Export all documents/Folders permissions to CSV using SharePoint PowerShell

SPUtility.js