02-20-06 12:47 PM
Hi all,
MCMS 2002 + SP1a
VS 2003
Check this out here:
Data is an array list of posting objects.
foreach (Posting p in data)
{
string resp = p.CreatedBy.ClientAccountName.ToString();
string path = p.Path;
path = path.Substring(siteChannel.Path.Length);
DataRow dr1 = table.NewRow();
dr1[0] = p.Name;
dr1[1] = resp;
dr1[2] = p.LastModifiedDate;
dr1[3] = p.ExpiryDate;
dr1[4] = p.State;
dr1[5] = path;
dr1[6] = p.Url;
table.Rows.Add(dr1);
}
Looks straightforward enough but... no matter what I do the string
"resp" always returns null even though if I step through the code I can
see that the clientaccountname returns a value. Appending to the
string, splitting it, assigning to the datarow directly and I still
can't use the value. I have rebooted, cleared the gac, flush the cache
etc but I can't get this value.
Is this is a bug?
Thanks in advance for your help,
Vic
[ Post a follow-up to this message ]
|