Click here to Skip to main content
15,891,734 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hey,

I am making my login page and want to authenticate the users and admins. Can tell me how to do and
how can I make table in such a way that it protects me from SQL injection.
Posted
Updated 27-Feb-12 7:05am
v2

1 solution

Your answer comes in 2 folds:

1. Creating asp.net login page

You can use Login control to create login page for the use. Follow the link for the detailed example
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.login.aspx[^]

2. Safeguarding your database from sql injection

You should use sql parameters to over come sql injection attacks.
Take a look at following code project article: SQL Injection Attacks and Some Tips on How to Prevent Them[^]

Also this MSDN magazine article

Stop SQL Injection Attacks Before They Stop You[^]

Also, similar question is answered here, you can refer this too.
Asp.net c# login page code with sql database[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900