space appended to user profile field on storing.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > User Profile Management > space appended to user profile field on storing.




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

    space appended to user profile field on storing.  
Martin


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


 
09-23-04 02:48 AM

This is a strange one...

It seems I have a custom profile field that CS2002 insists  on appending a
space to when it stores it in the database.
Even as I write this, I think it can't be true, but am looking at the value
userprofile.Properties["myfield"].Value immediately prior to calling
userprofile.Update(); -- the value has no space at the end

After update executes I look in the database, and *there* is a space at the
end of the text.

What's going on?
I don't see spaces at the end of other fields, yet I can't see that it's a
bug in my code unless the debugger is giving me duff information.

Anyone?
Martin







[ Post a follow-up to this message ]



    Re: space appended to user profile field on storing.  
Martin


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


 
09-23-04 02:48 AM

How embarassing - the data field in SQL was fixed length!


"Martin" <x@y.z> wrote in message
news:u$gzvKjnEHA.2612@TK2MSFTNGP15.phx.gbl...
> This is a strange one...
>
> It seems I have a custom profile field that CS2002 insists  on appending a
> space to when it stores it in the database.
> Even as I write this, I think it can't be true, but am looking at the
value
> userprofile.Properties["myfield"].Value immediately prior to calling
> userprofile.Update(); -- the value has no space at the end
>
> After update executes I look in the database, and *there* is a space at
the
> end of the text.
>
> What's going on?
> I don't see spaces at the end of other fields, yet I can't see that it's a
> bug in my code unless the debugger is giving me duff information.
>
> Anyone?
> Martin
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:50 AM.      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