I am getting 'A potentially dangerous Request.Form value was detected from the client' when I add
string strIMG = "<img id='" + "doc" + i + "'onClick=\"docFileDownLoad('" + strFileDown + "');\" height='17px' width='15px' src='" + strSRC + "'" + "alt='" + strALT + "' />";
DocNode.Text = strIMG;SubNode.Nodes.Add(DocNode);
I need to add link documents to my page. I already have validaterequest set to false.
Hi there,
you have to use HttpUtility.HtmlEncode() to html encode the string before assigning it to the Text property. Also you have to use DataTreeNode.NavigateUrl property to make the node to point to same link.
Hope this helps.
Thanks,
Lubomir