Click here to Skip to main content
15,886,017 members
Home / Discussions / C#
   

C#

 
QuestionCheck if expath exist Pin
ONeil Tomlinson7-Mar-10 23:12
ONeil Tomlinson7-Mar-10 23:12 
AnswerRe: Check if expath exist Pin
Mirko19807-Mar-10 23:42
Mirko19807-Mar-10 23:42 
QuestionConvert word file to pdf with openxml Pin
Pankaj Saha7-Mar-10 23:00
Pankaj Saha7-Mar-10 23:00 
QuestionWebClient and Events Pin
Teuz7-Mar-10 22:50
Teuz7-Mar-10 22:50 
AnswerRe: WebClient and Events Pin
johannesnestler8-Mar-10 4:17
johannesnestler8-Mar-10 4:17 
GeneralRe: WebClient and Events Pin
Teuz8-Mar-10 22:01
Teuz8-Mar-10 22:01 
QuestionRecord Not Insert Pin
mjawadkhatri7-Mar-10 21:00
mjawadkhatri7-Mar-10 21:00 
AnswerRe: Record Not Insert Pin
OriginalGriff7-Mar-10 21:47
mveOriginalGriff7-Mar-10 21:47 
Get rid of the problem, and potential SQL injection attacks by using Parameterized queries:
string Invqurey = "INSERT INTO invoice (id, date, gpno, product, customer, qty, carton, rate, amount, bilty, expdate)" +
                  " VALUES (@inid, @dt, @gpno, @prod, @cust, @qty, @carton, @rate, @amount, @bilty, @expdate)";
                  OdbcCommand cmd = new OdbcCommand(Invqurey, conn);
                  cmd.AddWithValue("@inid", inid.Text);
                  cmd.AddWithValue("@gpno", gpno.Text);
                  ...
Oh - and the standard is to use UPPERCASE for SQL keywords.
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace

C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

GeneralRe: Record Not Insert Pin
R. Giskard Reventlov7-Mar-10 22:12
R. Giskard Reventlov7-Mar-10 22:12 
AnswerRe: Record Not Insert Pin
Thomas Krojer8-Mar-10 1:16
Thomas Krojer8-Mar-10 1:16 
QuestionCustom TypeConverter for SubProperties Pin
akamper7-Mar-10 20:54
akamper7-Mar-10 20:54 
Questionhow to access the application Pin
santhosh-padamatinti7-Mar-10 20:05
santhosh-padamatinti7-Mar-10 20:05 
AnswerRe: how to access the application Pin
Anubhava Dimri7-Mar-10 20:10
Anubhava Dimri7-Mar-10 20:10 
GeneralRe: how to access the application Pin
santhosh-padamatinti7-Mar-10 20:21
santhosh-padamatinti7-Mar-10 20:21 
GeneralRe: how to access the application Pin
Anubhava Dimri7-Mar-10 20:38
Anubhava Dimri7-Mar-10 20:38 
GeneralRe: how to access the application Pin
Richard MacCutchan7-Mar-10 22:45
mveRichard MacCutchan7-Mar-10 22:45 
Questionmy function not functioning Pin
crisjala7-Mar-10 19:11
crisjala7-Mar-10 19:11 
AnswerRe: my function not functioning Pin
Khaniya7-Mar-10 19:50
professionalKhaniya7-Mar-10 19:50 
AnswerBumped post. Pin
Pete O'Hanlon7-Mar-10 22:45
mvePete O'Hanlon7-Mar-10 22:45 
QuestionInstallation error (Microsoft.Mshtml.dll could not load)? Pin
svt gdwl7-Mar-10 18:54
svt gdwl7-Mar-10 18:54 
AnswerRe: Installation error (Microsoft.Mshtml.dll could not load)? Pin
Atara10-Mar-10 1:01
Atara10-Mar-10 1:01 
QuestionMultidelegate with a returned value Pin
Ming Luo7-Mar-10 17:53
Ming Luo7-Mar-10 17:53 
AnswerRe: Multidelegate with a returned value Pin
vivasaayi7-Mar-10 18:22
vivasaayi7-Mar-10 18:22 
Questionwhat wrong with my code [modified] Pin
crisjala7-Mar-10 15:24
crisjala7-Mar-10 15:24 
AnswerRe: what wrong with my code Pin
Dave Kreskowiak7-Mar-10 15:51
mveDave Kreskowiak7-Mar-10 15: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.