Click here to Skip to main content
16,014,591 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET C# Code Behind SQL Update on a form Pin
Christian Graus27-Apr-07 13:56
protectorChristian Graus27-Apr-07 13:56 
GeneralRe: ASP.NET C# Code Behind SQL Update on a form Pin
Ibuprofen27-Apr-07 13:58
Ibuprofen27-Apr-07 13:58 
GeneralRe: ASP.NET C# Code Behind SQL Update on a form Pin
Christian Graus27-Apr-07 14:38
protectorChristian Graus27-Apr-07 14:38 
GeneralRe: ASP.NET C# Code Behind SQL Update on a form Pin
Ibuprofen27-Apr-07 14:55
Ibuprofen27-Apr-07 14:55 
GeneralRe: ASP.NET C# Code Behind SQL Update on a form Pin
Christian Graus27-Apr-07 15:14
protectorChristian Graus27-Apr-07 15:14 
GeneralRe: ASP.NET C# Code Behind SQL Update on a form Pin
Ibuprofen28-Apr-07 6:31
Ibuprofen28-Apr-07 6:31 
GeneralRe: ASP.NET C# Code Behind SQL Update on a form Pin
Christian Graus28-Apr-07 12:16
protectorChristian Graus28-Apr-07 12:16 
AnswerRe: ASP.NET C# Code Behind SQL Update on a form Pin
DavidNohejl28-Apr-07 3:20
DavidNohejl28-Apr-07 3:20 
Did you look what actually ends up in strSQL? You are likely to spot problem in final query (with user input) then from this code alone. BTW for us here it's impossible to say if your code is ok since we don't know structure of your database.

In addition to what CG said, there is another problem with your code.

Ibuprofen wrote:
" [DTG_Submit], [LoginID], [TestPhase]"+
" FROM t_EOT_User WHERE RecNum="+RecNum.Text;


I recon RecNum is Textbox or similar. Now, what happens when user write, for example "1 AND TRUE"? You will end up with all records updated instead of just one. It's serious security hole, known as SQL Injection.


"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

GeneralRe: ASP.NET C# Code Behind SQL Update on a form Pin
Ibuprofen28-Apr-07 6:33
Ibuprofen28-Apr-07 6:33 
GeneralRe: ASP.NET C# Code Behind SQL Update on a form Pin
Ibuprofen28-Apr-07 6:34
Ibuprofen28-Apr-07 6:34 
Questionadd/update in detail view Pin
Alex Ru27-Apr-07 9:32
Alex Ru27-Apr-07 9:32 
QuestionForce Numeric in Textbox Pin
aransiola27-Apr-07 9:07
aransiola27-Apr-07 9:07 
AnswerRe: Force Numeric in Textbox Pin
overfreeze27-Apr-07 12:45
overfreeze27-Apr-07 12:45 
AnswerRe: Force Numeric in Textbox Pin
Christian Graus27-Apr-07 13:21
protectorChristian Graus27-Apr-07 13:21 
QuestionLong Surveys / Questionnaires TIMEOUT ISSUES` Pin
Ibuprofen27-Apr-07 6:02
Ibuprofen27-Apr-07 6:02 
AnswerRe: Long Surveys / Questionnaires TIMEOUT ISSUES` Pin
Christian Graus27-Apr-07 20:05
protectorChristian Graus27-Apr-07 20:05 
QuestionSending SMS via ASP.NET Web Service Pin
Nirmal8427-Apr-07 5:17
Nirmal8427-Apr-07 5:17 
AnswerRe: Sending SMS via ASP.NET Web Service Pin
Psycho-*Coder*-Extreme27-Apr-07 10:27
Psycho-*Coder*-Extreme27-Apr-07 10:27 
QuestionResizing Image Pin
Tarik Guney27-Apr-07 4:01
Tarik Guney27-Apr-07 4:01 
AnswerRe: Resizing Image Pin
Cfer8327-Apr-07 7:46
Cfer8327-Apr-07 7:46 
GeneralRe: Resizing Image Pin
Tarik Guney27-Apr-07 8:10
Tarik Guney27-Apr-07 8:10 
QuestionExport to excel Pin
.NET- India 27-Apr-07 2:55
.NET- India 27-Apr-07 2:55 
AnswerRe: Export to excel Pin
Sathesh Sakthivel27-Apr-07 3:15
Sathesh Sakthivel27-Apr-07 3:15 
QuestionTextBox.text as parameter in query Pin
kallileo27-Apr-07 2:08
kallileo27-Apr-07 2:08 
AnswerRe: TextBox.text as parameter in query Pin
szukuro27-Apr-07 2:24
szukuro27-Apr-07 2:24 

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.