asp.net 2.0
llblgenpro 2
adapterTemplate
hiya,
I have some lookup code in a the aspx of a gridView.
Text='<%# GetUserName(Eval("AssignedToUserId").ToString()) %>'
The corresponding code behind is:
protected string GetUserName(string userId)
{
if (!GuidHelper.IsValidGuid(userId))
{
return string.Empty;
}
return Membership.GetUser(new Guid(userId)).UserName;
}
It works fine when I bind to a dataset.
When I bind to an lblGenPro entityCollection (which grabs exactly the same data) I get an error (because the value can sometimes be null)
My question, can I change some setting so that this will work with llblGenpro WITHOUT me having to change any code?
many thanks,
yogi