I want to display one String which is comes from SQLC. String is Like “Hello This demo & i want that” this string is strore in database.
Out put side i only display “Hello This demo &” I want to display full string “Hello This demo & i want that” in C#
I want to display one String which is comes from SQLC. String is Like
Share
I think your problem occurs because the char &
You need to encode your data before you store it in db, and decode it after you getting data from db.
Example
I also suggesting to prevent sql injection before you store data in db.
for example see this function
you can add more protection.
i hope it will help you