Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Assigning Person/Group column type value from one list to another list.

$
0
0

i am assigning value to a user column from a user column in a  list to another list using the following code

item["Username"] = CurrentListItem["Username"].ToString();

The code works fine when there is a value in CurrentListItem.But when there is no value in CurrentListItem it throws an null value exception.Any pointers on how to handle this will be helpful.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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