Hi
I am doing a project, I am saving some text and html tags in sql server, but I need the message come and fill in a label control, It is loading ,
but html tags are not excuting, I used few ways like, in page header validateRequest=false, and to fill label I used Sever.HtmlDecode still it is not working I have html tags like <img>, <br>
1. code for textbox
txtMessage.Text= "<BR><BR><HR>Sent On:" + message.Message.Createdate.ToString() +
"<BR>Subject: " + message.Message.Subject +
"<BR>Message: " + message.Message.Body;
txtMessage.Text = Server.HtmlDecode(txtMessage.Text);(not working)
2. code for label control
"<img width=\"50\" height=\"50\" src=\"images/ProfilePictures/pic.aspx?AccountID=" +
accountID.ToString();
this is the part and some text as well text is loading properly in label control, but this <img><br> an ...
Go to the complete details ...