SQL注入错误 [英] Sql Injection Errors

查看:121
本文介绍了SQL注入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


请帮助我解决我的问题


1.在表格中,我们有一个文本框&按钮可在网格内搜索

2.我在pageload&期间调用了grid同样在按钮事件中.
3.在文本框中,如果我指定 < insert> 并触发了按钮事件
我收到错误消息,例如从客户端检测到潜在的价值要求……"

要纠正此问题

第一种方法

<%@ page Validaterequest ="false" ...%>
那我也遇到同样的问题.


第二种方法


我使用了正则表达式验证器

在正则表达式验证器中,我解决了这个问题

任何其他解决sql注入错误的方法

请帮我解决这个问题

谢谢

Sheethal

Hi
Please Help Me to solve my problem


1. In Forms we have text box & button to search inside the grid

2.I called grid during pageload & also in button event.
3.in textbox if i specify <insert> and fired the button event
I got error message like "A potentially dangerous request for value was detected from the client......"

To Rectify this problem

1st Method

<%@page Validaterequest ="false"...%>
then also I am getting same problem.


2nd Method


I used Regular Expression Validator

During Regular Expression validator I solved this problem

Any other method to solve the sql injection errors

please help me to solve this problem

Thanks

Sheethal

推荐答案

USE使用参数来传递值和StoredProcedures,这样您就不会影响sqlinjection.
USE Parameters to pass the values and also StoredProcedures then u cannot affect sqlinjections.


这篇关于SQL注入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆