Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
Which data-related class do you use to help prevent SQL injection attacks?
on 5/2/2011 | Category:
ADO.NET Interview questions
| Views: 8279 |
Select from following answers:
We need to avoid Dynamic SQL like this
string strQry = "SELECT Count(*) FROM Users WHERE UserName='" +
txtUser.Text + "' AND Password='" + txtPassword.Text + "'";
because if user enter Username name value likely ' Or 1=1 -- then it return true what's ever the value we have in password.
Show Correct Answer
Many Interviews |
< Previous :
Is it possible to get the Registry values through ...
Next > :
How can a function accepts variable mumber of argu ...
Comments or Responses
on: 5/3/2011 |
very important thing to prevent sql injection.....
good lokesh.......keep it up....
on: 5/4/2011 |
on: 6/22/2011 |
Thanks for this informtion.
Login to post response
More Interview Questions by Lokesh76
When using ASP.net AJAX, which attribute do you add to a web service c ...
Can we use TOP with UPDATE and DELETE on partitioned views?
What is the purpose of IIS application pools?
What does a Windows Communication Foundation, or WCF, service applicat ...
When health monitoring is enabled, which property is required in the h ...
Which base class is extended once ASP.NET automatically parses and com ...
Which object do you use when you need to know the type and version of ...
Latest Interview Questions
How can a function accepts variable mumber of arguments in C ?
What is BSON ?
what is Windows Process Activation Service ?
Difference Json Arrary Vs Json Object ?
What is the difference between Session.Abandon() and Session.Clear()?
A theme can contain how many Default and Named skin for each control ?
What is the use of AutoEventWireUp attribute?
What is Type Inferencing?