|
|
1
2
你可以在绑定时对其进行编码…
|
|
2
0
假我。我只需要在onitemdatabound()事件中对其进行htmlencode。 |
|
|
3
0
有两份数据副本:
|
|
|
4
0
或者可以使用httputility.htmlencode(“string”); 两者都是有效的,但在应用程序中的任何地方都可以使用上述方法,这比加载httpcontext.current.server.htmlencode更容易。 |