Your best bet would probably be to HTML-encode the string. e.g.:
someLabel.Text = Server.HtmlEncode(yourString)
This will replace the quotes with " named entity, as well as escaping
other HTML that might potentially cause problems (e.g.: unexpected page
modifications or cross-site scripting).
"Ganesh" <Ga****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
I have a label control on my form. I'm assigning a text to the label at
runtime.
The problem is that the string that I'm trying to assign also contains
text
in double quotes.So when I try n assign this to the label I face a
problem.
my code is using vb.net
Please help me out in getting this thing done, Is there any in-built
function or property to handle the same?
thanx
Ganesh