Problem with string
Hi all,
I have a problem with my string passed in between div tag in my web site(asp.net).
Between a div tag i had place one label and in text property of lable i had passed my string from db.
String is as follow :
When i am loading my page instead of displaying this screen it will display me alert box on the screen.
Now any one who has idea how to stop this please help me.
Thanks is advance .
Kirtan PatelPosted Dec 4, 2009, 7:44 AM
you need to code like Below to show HTML code in aspx page .
Label1.Text = Server.HtmlEncode("");
if my answer helps you then check "Do you like this answer check box please :)
avani ravalPosted Dec 4, 2009, 7:57 AM
avani ravalPosted Dec 4, 2009, 7:54 AM