Click here to Skip to main content
13,087,566 members (94,009 online)
Rate this:
 
Please Sign up or sign in to vote.
Hai all,

How to prevent sql injection in asp.net & C# web site. We have problem for script injection. Please help me,

Regards,
Manu.
Posted 4-Sep-12 1:32am
Comments
Bernhard Hiller 4-Sep-12 7:40am
   
Not a solution, but worth a look:
http://www.codeproject.com/Feature/WeirdAndWonderful.aspx?msg=4335687#xx4335687xx
and resources mentioned therein.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Mohamed Mitwalli 4-Sep-12 8:15am
   
5+
Anuja Pawar Indore 4-Sep-12 8:17am
   
Thanks Mohamed :)
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
Mohamed Mitwalli 4-Sep-12 8:15am
   
5+
Prasad_Kulkarni 4-Sep-12 8:26am
   
Thank you Mohamed!
Manas Bhardwaj 4-Sep-12 16:14pm
   
Good 5+
Prasad_Kulkarni 5-Sep-12 0:01am
   
Thank you Manas!
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

see the below link you will get your answer from it..

http://msdn.microsoft.com/en-us/library/ff648339.aspx[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

Sanitize the input, Escape/Quote safe the input, bound parameters, Limit database permissions and segregate users, Use stored procedures for database access, Isolate the webserver, Configure error reporting.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 5

  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 4 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100