Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Retrieving empty values from multi value string in user profile custom properties

$
0
0

Hi,

I created a webpart to save and retrieve data from custom properties. I use the code below to get the stored data:

               for (int i = 0; i < profile[property].Count; i++)
                {
                    Item = profile[property][i] == null ? string.Empty : profile[property][i].ToString();

                    list.Add(Regex.Split(Item, @"\,\#"));
                }

Nothinig special about it.

In my development environment, it works fine. The problem is  in my UAT environment. I'm facing an issue that i hope someone has been through. When the custom property is a multi value string type, it returns a empty string. I tested with HTML and single value fields and it works fine.

Independently of the field type, it saves the data all right.


Can anyone help me?



Thanks!!

Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>