【发布时间】:2014-02-27 04:15:15
【问题描述】:
当我尝试将它放在这样的文本框中时遇到错误,
tbGameTitle.Text = "<iframe id = 'ForIframe' src='http://e.gamesalad.com/play/117208' allowTransparency='true' scrolling='no'></iframe>";
当我点击我的按钮时
myThing.InnerHtml = tbGameTitle.Text;
它会抛出这个错误
A potentially dangerous Request.Form value was detected from the client (tbGameTitle="<iframe id = 'ForIfr...").
如果我在 pageload 事件中有这个负载,那么它很好。但是,只要我在文本框中输入它并单击我的按钮,它就会引发该错误。我从很久以前就让它在另一个项目中工作,它从来没有抛出这个错误。
【问题讨论】: