ClientAccountName - strange problem...
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > ClientAccountName - strange problem...




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ClientAccountName - strange problem...  
Victor-Seán


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:49 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register