Click here to Skip to main content
15,923,087 members
Home / Discussions / C#
   

C#

 
GeneralRe: Weird data bindings issue Pin
Harvey Saayman30-Jun-08 1:14
Harvey Saayman30-Jun-08 1:14 
QuestioncheckBox & ListView Pin
laziale30-Jun-08 0:20
laziale30-Jun-08 0:20 
AnswerRe: checkBox & ListView Pin
Vimalsoft(Pty) Ltd30-Jun-08 1:00
professionalVimalsoft(Pty) Ltd30-Jun-08 1:00 
GeneralRe: checkBox & ListView Pin
laziale30-Jun-08 1:19
laziale30-Jun-08 1:19 
QuestionDetermine incorrect String.Format format Pin
Stevo Z29-Jun-08 23:59
Stevo Z29-Jun-08 23:59 
AnswerRe: Determine incorrect String.Format format Pin
PIEBALDconsult30-Jun-08 5:10
mvePIEBALDconsult30-Jun-08 5:10 
QuestionSQL connection execute what? Pin
laziale29-Jun-08 23:13
laziale29-Jun-08 23:13 
AnswerRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:22
protectorChristian Graus29-Jun-08 23:22 
Well, you know that this code is very insecure and easy to hack, right ?

What is con ? This does look messy to me. You don't need half of these objects, I am sure of that.

Here is an example I found with google:

Public Sub CreateMySqlCommand(myExecuteQuery As String, myConnection As SqlConnection)
Dim myCommand As New SqlCommand(myExecuteQuery, myConnection)
myCommand.Connection.Open()
myCommand.ExecuteNonQuery()
myConnection.Close()
End Sub 'CreateMySqlCommand

IT's VB.NET, but it's clear which objects you should use, how you should use them, and where you're getting confused.

Christian Graus

Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:28
laziale29-Jun-08 23:28 
GeneralRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:36
protectorChristian Graus29-Jun-08 23:36 
AnswerRe: SQL connection execute what? Pin
Mbah Dhaim29-Jun-08 23:27
Mbah Dhaim29-Jun-08 23:27 
GeneralRe: SQL connection execute what? Pin
Colin Angus Mackay29-Jun-08 23:31
Colin Angus Mackay29-Jun-08 23:31 
JokeRe: SQL connection execute what? Pin
Mbah Dhaim29-Jun-08 23:37
Mbah Dhaim29-Jun-08 23:37 
GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:34
laziale29-Jun-08 23:34 
GeneralRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:39
protectorChristian Graus29-Jun-08 23:39 
AnswerRe: SQL connection execute what? Pin
Colin Angus Mackay29-Jun-08 23:30
Colin Angus Mackay29-Jun-08 23:30 
GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:36
laziale29-Jun-08 23:36 
GeneralRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:38
protectorChristian Graus29-Jun-08 23:38 
GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:40
laziale29-Jun-08 23:40 
GeneralRe: SQL connection execute what? Pin
laziale30-Jun-08 0:04
laziale30-Jun-08 0:04 
Questionhow to use calculous to programing three dimensional graphics Pin
chenli051329-Jun-08 23:00
chenli051329-Jun-08 23:00 
AnswerRe: how to use calculous to programing three dimensional graphics Pin
Christian Graus29-Jun-08 23:04
protectorChristian Graus29-Jun-08 23:04 
AnswerRe: how to use calculous to programing three dimensional graphics Pin
leppie29-Jun-08 23:46
leppie29-Jun-08 23:46 
AnswerRe: how to use calculous to programing three dimensional graphics Pin
Alan Balkany30-Jun-08 4:57
Alan Balkany30-Jun-08 4:57 
QuestionNumericUpDown SelectedText property work-around Pin
jozsurf29-Jun-08 22:51
jozsurf29-Jun-08 22:51 

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.