Is there a readily available transformation function similar to <%# GetUserFullName(Eval<int>("UserID")) %> for getting a user's firstname?
<%# GetUserFullName(Eval<int>("UserID")) %>
You can use something like this, with caution, as it may error out if no user is found:
<%# UserInfoProvider.GetUserInfo(ValidationHelper.GetIntegr(Eval("UserID"), 0)).FirstName %>
Thank you Brenden. It threw errors, so I'll just stay with the GetUserFullName for now.
If you only need it for a one-time, unique use, then I'd just create your function right in the transformation. If you plan to use it in other places or transformations as well, then I'd go with a custom function.
Please, sign in to be able to submit a new answer.