Avoid SQL injection in ASP.net

Posted by Muhsinathk under ASP.NET on 6/7/2012 | Points: 10 | Views : 1456 | Status : [Member] | Replies : 9
Hi,
How we can avoid SQL injection on ASP.net?




Responses

Posted by: .Netlearner on: 6/7/2012 [Member] Starter | Points: 25

Up
0
Down
Hope this vl be usefull . .
http://msdn.microsoft.com/en-us/library/ff648339.aspx

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 6/7/2012 [Member] Bronze | Points: 25

Up
0
Down
Thank you...

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 6/7/2012 [Member] Bronze | Points: 25

Up
0
Down
This is another link..

http://en.wikipedia.org/wiki/SQL_injection

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 6/7/2012 [Member] Starter | Points: 25

Up
0
Down
Few tips
Replace all those character due to mwhich sql injection occure....
string Name=txtname.Text.Tostring().Trim().Replace('',' ').Replace(''','').Replace('<script>','').Replace('&','');

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 6/7/2012 [Member] Bronze | Points: 25

Up
0
Down
Thank youu

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 6/8/2012 [Member] Bronze | Points: 25
Posted by: Ajay.Kalol on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
http://www.unixwiz.net/techtips/sql-injection.html

Try this, it's good one

Ajay
ajaypatelfromsanthal.blogspot.in

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 6/8/2012 [Member] Bronze | Points: 25

Up
0
Down
Thank youu

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response