gem56
asked on
How to enter ampersand (&) character in a TextBox without it being translated
Hi,
When I enter (for example) "Fred & John" in a TextBox, save that text and later recall it by reloading the text box, the single ampersand (&) character is not shown but instead is interpreted as a control char.
If I enter "Fred && John" and do same as above then a single ampersand is shown on subsequent reload of that TextBox.
In the past I did something to basically inform the system to treat that character like any other but I forget now what I did. Any help?
/Michael
When I enter (for example) "Fred & John" in a TextBox, save that text and later recall it by reloading the text box, the single ampersand (&) character is not shown but instead is interpreted as a control char.
If I enter "Fred && John" and do same as above then a single ampersand is shown on subsequent reload of that TextBox.
In the past I did something to basically inform the system to treat that character like any other but I forget now what I did. Any help?
/Michael
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
First of all, is this saved in a database? secondly is this web or windows?
ASKER
Hi guys,
I must appologise for my poorly described question and limited testing, I was in a real hurry.
I actually entered the text in one dialog via a TextBox and later showed the entered text via a Label, incorrectly. Setting the UseMnemonic attribute to "false" did the trick so thank you all for responding and of course tchamtieh for the answer.
Thanks,
I must appologise for my poorly described question and limited testing, I was in a real hurry.
I actually entered the text in one dialog via a TextBox and later showed the entered text via a Label, incorrectly. Setting the UseMnemonic attribute to "false" did the trick so thank you all for responding and of course tchamtieh for the answer.
Thanks,
No problem. I am glad to help out where I can.