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

IRM and the Object Model

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

Activate and Deactivate Feature through PowerShell