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

C#

 
AnswerRe: How to : Get the variable name in runtime ? Pin
Eddy Vluggen15-Jul-09 2:46
professionalEddy Vluggen15-Jul-09 2:46 
GeneralRe: How to : Get the variable name in runtime ? Pin
Luc Pattyn15-Jul-09 2:50
sitebuilderLuc Pattyn15-Jul-09 2:50 
QuestionHow to Get AutoGenerate Code with Strings and Numbers in C# Pin
ChandrakanthGaddam15-Jul-09 2:12
ChandrakanthGaddam15-Jul-09 2:12 
AnswerRe: How to Get AutoGenerate Code with Strings and Numbers in C# Pin
dan!sh 15-Jul-09 2:17
professional dan!sh 15-Jul-09 2:17 
AnswerRe: How to Get AutoGenerate Code with Strings and Numbers in C# [modified] Pin
musefan15-Jul-09 2:17
musefan15-Jul-09 2:17 
GeneralRe: How to Get AutoGenerate Code with Strings and Numbers in C# Pin
Luc Pattyn15-Jul-09 2:51
sitebuilderLuc Pattyn15-Jul-09 2:51 
Questionhi.. Pin
mjawadkhatri15-Jul-09 1:52
mjawadkhatri15-Jul-09 1:52 
AnswerRe: hi.. Pin
Tom Deketelaere15-Jul-09 1:55
professionalTom Deketelaere15-Jul-09 1:55 
0) 'hi' = bad subject
1)
mjawadkhatri wrote:
cmd.CommandText = "insert into timemgmt values('" + textBox1.Text + "','" + label19.Text + "','" + label18.Text + "','" + label18.Text + "')";


Use parameters (odbcparameter). (read up on sql-injunctions)

2) use the 'code block' tags to post code

3) Your question: One way to do it would be to do a select from the user + date first. If the select returns 0 rows --> insert else --> don't insert
GeneralRe: hi.. Pin
Luc Pattyn15-Jul-09 2:05
sitebuilderLuc Pattyn15-Jul-09 2:05 
GeneralRe: hi.. Pin
musefan15-Jul-09 2:09
musefan15-Jul-09 2:09 
GeneralRe: hi.. Pin
Luc Pattyn15-Jul-09 2:14
sitebuilderLuc Pattyn15-Jul-09 2:14 
GeneralRe: hi.. Pin
musefan15-Jul-09 2:22
musefan15-Jul-09 2:22 
GeneralRe: hi.. Pin
Luc Pattyn15-Jul-09 2:25
sitebuilderLuc Pattyn15-Jul-09 2:25 
GeneralRe: hi.. Pin
musefan15-Jul-09 2:31
musefan15-Jul-09 2:31 
GeneralRe: hi.. Pin
Tom Deketelaere15-Jul-09 2:32
professionalTom Deketelaere15-Jul-09 2:32 
GeneralRe: hi.. Pin
Christian Graus15-Jul-09 2:48
protectorChristian Graus15-Jul-09 2:48 
GeneralRe: hi.. Pin
Tom Deketelaere15-Jul-09 2:53
professionalTom Deketelaere15-Jul-09 2:53 
GeneralRe: hi.. Pin
Luc Pattyn15-Jul-09 2:53
sitebuilderLuc Pattyn15-Jul-09 2:53 
GeneralRe: hi.. Pin
Tom Deketelaere15-Jul-09 3:04
professionalTom Deketelaere15-Jul-09 3:04 
QuestionAutomatic Email Sender Pin
dev sheoran15-Jul-09 1:41
dev sheoran15-Jul-09 1:41 
AnswerRe: Automatic Email Sender Pin
Not Active15-Jul-09 2:25
mentorNot Active15-Jul-09 2:25 
GeneralRe: Automatic Email Sender Pin
Manas Bhardwaj15-Jul-09 2:29
professionalManas Bhardwaj15-Jul-09 2:29 
GeneralRe: Automatic Email Sender Pin
Manas Bhardwaj15-Jul-09 2:38
professionalManas Bhardwaj15-Jul-09 2:38 
GeneralRe: Automatic Email Sender Pin
Not Active15-Jul-09 2:45
mentorNot Active15-Jul-09 2:45 
GeneralRe: Automatic Email Sender Pin
dev sheoran15-Jul-09 2:43
dev sheoran15-Jul-09 2:43 

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.