Click here to Skip to main content
15,915,050 members
Home / Discussions / C#
   

C#

 
Question[Message Deleted] Pin
Nekshan5-Feb-07 21:56
Nekshan5-Feb-07 21:56 
AnswerRe: insert data in database from textbox Pin
Christian Graus5-Feb-07 21:58
protectorChristian Graus5-Feb-07 21:58 
Generalthanx. Pin
Nekshan5-Feb-07 22:05
Nekshan5-Feb-07 22:05 
AnswerRe: insert data in database from textbox Pin
gauthee5-Feb-07 22:05
gauthee5-Feb-07 22:05 
GeneralRe: insert data in database from textbox Pin
Nekshan5-Feb-07 22:19
Nekshan5-Feb-07 22:19 
GeneralRe: insert data in database from textbox Pin
gauthee5-Feb-07 22:34
gauthee5-Feb-07 22:34 
GeneralRe: insert data in database from textbox Pin
Christian Graus5-Feb-07 22:37
protectorChristian Graus5-Feb-07 22:37 
GeneralRe: insert data in database from textbox Pin
Colin Angus Mackay5-Feb-07 23:32
Colin Angus Mackay5-Feb-07 23:32 
gauthee wrote:
y cant u just give insert........values(textbox1.text.tostring, textbox2.text.tostring) instead of all the parameters!!!!


That would introduce vulnerabilities into the application. You really MUST read SQL Injection Attacks and Tips on How to Prevent Them[^] before giving out any more advice like this.

Also, myTextBox.Text returns a string already. So there is zero need to append ToString() on that.


GeneralRe: insert data in database from textbox Pin
Christian Graus5-Feb-07 22:24
protectorChristian Graus5-Feb-07 22:24 
AnswerRe: insert data in database from textbox Pin
Colin Angus Mackay5-Feb-07 22:29
Colin Angus Mackay5-Feb-07 22:29 
GeneralRe: insert data in database from textbox Pin
Christian Graus5-Feb-07 22:38
protectorChristian Graus5-Feb-07 22:38 
AnswerRe: [Message Deleted] Pin
Andy *M*17-Feb-07 6:14
Andy *M*17-Feb-07 6:14 
Questioncollection question Pin
groundzero1115-Feb-07 21:45
groundzero1115-Feb-07 21:45 
AnswerRe: collection question Pin
gauthee5-Feb-07 22:01
gauthee5-Feb-07 22:01 
AnswerRe: collection question Pin
Stefan Troschuetz5-Feb-07 22:03
Stefan Troschuetz5-Feb-07 22:03 
AnswerRe: collection question Pin
Christian Graus5-Feb-07 22:03
protectorChristian Graus5-Feb-07 22:03 
QuestionThanx Graus ... Pin
Nekshan5-Feb-07 21:37
Nekshan5-Feb-07 21:37 
AnswerRe: Thanx Graus ... Pin
Stefan Troschuetz5-Feb-07 21:49
Stefan Troschuetz5-Feb-07 21:49 
AnswerRe: Thanx Graus ... Pin
Christian Graus5-Feb-07 21:54
protectorChristian Graus5-Feb-07 21:54 
QuestionVS2005/C# runs a project file instead of a solution file Pin
AesopTurtle5-Feb-07 21:35
AesopTurtle5-Feb-07 21:35 
AnswerRe: VS2005/C# runs a project file instead of a solution file Pin
AesopTurtle5-Feb-07 21:53
AesopTurtle5-Feb-07 21:53 
QuestionHow to detect default instance of SQL Server? Pin
bouli5-Feb-07 21:17
bouli5-Feb-07 21:17 
AnswerRe: How to detect default instance of SQL Server? Pin
Christian Graus5-Feb-07 21:55
protectorChristian Graus5-Feb-07 21:55 
QuestionNew Editor Pin
GunaChinna5-Feb-07 21:09
GunaChinna5-Feb-07 21:09 
AnswerRe: New Editor Pin
stancrm5-Feb-07 21:13
stancrm5-Feb-07 21:13 

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.