|
-
October 20th, 2010, 03:21 AM
#1
problem while replacing _ with &
while formatting the string by using String.Format() with message "john & berry's",
it displays like "john _berry's".
& is replace by _
[code]
String.Format(StringHelper.GetFASMessagingValue("ListAddOptionConfirm"), Masking == null ? valueMember.Replace(@"&",@"\&") : new string(Masking.MaskedText).Replace(@"&",@"\&"), fieldName);
[\code]
please provide the solution
-
October 20th, 2010, 04:52 PM
#2
Re: problem while replacing _ with &
"john && berry's"
The '&' character is used as the hot key. You escape it with a second '&' char.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|