sql server - Selecting from a column with Ampersand(&) -


the data type of column nvarchar. can insert column using parameters. see ampersand character in column when view table in sql server management studio.

my problem when i'm selecting column in application ampersand character disappears.

once select column assign value label like, label1.text = reader("column")

the column in table has value of "foo&bar" in application shows "foobar".

looks ampersand turning next letter shortcut.

i did replace on ampersand 2 ampersands escapes.

label1.text = reader("column").tostring().replace("&", "&&")


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -