Click here to Skip to main content
15,908,172 members
Home / Discussions / C#
   

C#

 
Questionburn data Pin
karname7-Feb-07 7:17
karname7-Feb-07 7:17 
AnswerRe: burn data Pin
Ravi Bhavnani7-Feb-07 7:41
professionalRavi Bhavnani7-Feb-07 7:41 
QuestionSQL Statment Pin
microuser_20007-Feb-07 7:15
microuser_20007-Feb-07 7:15 
AnswerRe: SQL Statment Pin
Pete O'Hanlon7-Feb-07 8:50
mvePete O'Hanlon7-Feb-07 8:50 
GeneralRe: SQL Statment Pin
microuser_20007-Feb-07 10:40
microuser_20007-Feb-07 10:40 
GeneralRe: SQL Statment Pin
Colin Angus Mackay7-Feb-07 12:06
Colin Angus Mackay7-Feb-07 12:06 
GeneralRe: SQL Statment Pin
microuser_20008-Feb-07 9:36
microuser_20008-Feb-07 9:36 
GeneralRe: SQL Statment Pin
Colin Angus Mackay8-Feb-07 11:09
Colin Angus Mackay8-Feb-07 11:09 
microuser_2000 wrote:
if i validate the data in the forms befor i run the sql statment i can skep the injection attacks part ..


OMG | :OMG:

Not really no. Don't think you can outwit a clever attacker. Personally, I believe that if I sufficiently sanitise the input then I won't be attacked. But, I am not infallible (no one is, not even you!) so I still use parameterised queries as an extra safety mechanism. It doesn't cost me anything, the code actually looks cleaner and easier to read and I have extra safety. Also, in some database systems using the same parameterised query, but just changing the parameter values means you get faster query execution too because it doesn't have to recompile the SQL each time.

Only give up safety if there are tangible benefits. Better safe than sorry.


GeneralRe: SQL Statment Pin
microuser_20008-Feb-07 11:21
microuser_20008-Feb-07 11:21 
Questionis it possible to use a value type in a generic method constraint? Pin
michal.kreslik7-Feb-07 7:14
michal.kreslik7-Feb-07 7:14 
AnswerRe: is it possible to use a value type in a generic method constraint? Pin
Judah Gabriel Himango7-Feb-07 7:41
sponsorJudah Gabriel Himango7-Feb-07 7:41 
GeneralRe: is it possible to use a value type in a generic method constraint? Pin
michal.kreslik7-Feb-07 8:05
michal.kreslik7-Feb-07 8:05 
GeneralRe: is it possible to use a value type in a generic method constraint? Pin
Judah Gabriel Himango7-Feb-07 8:55
sponsorJudah Gabriel Himango7-Feb-07 8:55 
GeneralRe: is it possible to use a value type in a generic method constraint? Pin
michal.kreslik7-Feb-07 9:11
michal.kreslik7-Feb-07 9:11 
GeneralRe: is it possible to use a value type in a generic method constraint? Pin
Judah Gabriel Himango7-Feb-07 9:27
sponsorJudah Gabriel Himango7-Feb-07 9:27 
GeneralRe: is it possible to use a value type in a generic method constraint? Pin
michal.kreslik7-Feb-07 10:44
michal.kreslik7-Feb-07 10:44 
QuestionHow to capture Datagrid Header Text events? Pin
sundar1567-Feb-07 6:59
sundar1567-Feb-07 6:59 
AnswerRe: How to capture Datagrid Header Text events? Pin
Ravi Bhavnani7-Feb-07 7:07
professionalRavi Bhavnani7-Feb-07 7:07 
QuestionHow to add file onto txbbox? [modified] Pin
Eyungwah7-Feb-07 6:47
Eyungwah7-Feb-07 6:47 
AnswerRe: How to add file onto txbbox? Pin
Ravi Bhavnani7-Feb-07 6:57
professionalRavi Bhavnani7-Feb-07 6:57 
QuestionBufferedGraphicsContext Pin
Jim Warburton7-Feb-07 6:34
Jim Warburton7-Feb-07 6:34 
QuestionDelegate Pin
pssuresh7-Feb-07 6:15
pssuresh7-Feb-07 6:15 
AnswerRe: Delegate Pin
Luc Pattyn7-Feb-07 6:20
sitebuilderLuc Pattyn7-Feb-07 6:20 
QuestionVisual studio functionality Pin
netJP12L7-Feb-07 5:43
netJP12L7-Feb-07 5:43 
AnswerRe: Visual studio functionality Pin
Ravi Bhavnani7-Feb-07 7:11
professionalRavi Bhavnani7-Feb-07 7:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.