Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Kentico - Transformation Eval() & trailing space at the end

$
0
0
This must be the simplest question ever, but again, I don't know the answer. I've just noticed that (in my case) using something like Eval("Location") always creates a trailing blank space at the end of the output. Normally I don't care about that trailing space, but in one particular situation, it has to be removed. I've tried using replace() but that only works for the text itself but not the trailing blank space, such as "San Francisco " becomes "SanFrancisco ", but the trailing space still exists. Please let me know how to get rid of it. I've checked my text, and it doesn't have any space at the end.Eval("Location").ToString().Replace(" ","")

Viewing all articles
Browse latest Browse all 8901

Trending Articles