对于刷新问题,大家可以参考http://www.microsoft.com/china/msdn/library/webservices/asp.net/BedrockAspNet.mspx
如果你不使用他的刷新判断,只是要你的WEB页面可以防SQL注入的话。
你只要在你的web.config中加入。
<appSettings>
<add key="Sql_BanFileName" value="BanFileName.htm"/>//如果当前请求的URL?号以后有SQL关键字
则跳转到当前页面。
</appSettings>
<system.web>
<httpModules>
<add name="Module" type="My.Refresh.RefreshModule, Refresh" />//http请求交给PAGE的继承类处理。
</httpModules>
</system.web>
最新相关文章
发表评论