---
title: "How to protect from SQL Injection in ASP.NET"  
description: "How to protect from SQL Injection in ASP.NET"  
author: "Jayden Bell"  
published: 2013-01-21  
updated: 2013-01-28  
canonical: https://www.mindstick.com/forum/542/how-to-protect-from-sql-injection-in-asp-dot-net  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# How to protect from SQL Injection in ASP.NET

Hi Everyone!\
\
I have created one [web application](https://www.mindstick.com/articles/13069/progressive-web-application-pwas-all-you-need-to-know-about) in [ASP.NET](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) with C#. I want to [protect](https://www.mindstick.com/interview/479/how-to-protect-special-characters-in-query-string) this application from [SQL injection](https://www.mindstick.com/blog/227/sql-injection). How it is possible? \
Please help me.\
\
Thanks in [advanced](https://www.mindstick.com/articles/12993/5-advanced-features-for-your-odoo-ecommerce-theme)

## Replies

### Reply by AVADHESH PATEL

Hi Jayden Bell!\
Get the help from below link. This article described [SQL](https://www.mindstick.com/articles/13115/types-of-keys-in-sql-or-oracle-database) Injection with demo and prevent methods in simple words.\
http://www.mindstick.com/Articles/263b6a84-188d-497c-bd6b-1f9f2737f205/?Stored%20Procedure%20with%20ADO.NET%20Entity%20Data%20Model%20in%20ASP.NET\
\
\

### Reply by AVADHESH PATEL

Post is removed by the Admin.


---

Original Source: https://www.mindstick.com/forum/542/how-to-protect-from-sql-injection-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
