Click here to Skip to main content
15,912,507 members
Home / Discussions / C#
   

C#

 
QuestionMail attachments Pin
damianrda17-Jul-08 8:05
damianrda17-Jul-08 8:05 
QuestionWMI Question Pin
#realJSOP17-Jul-08 6:11
professional#realJSOP17-Jul-08 6:11 
AnswerRe: WMI Question Pin
half-life17-Jul-08 6:21
half-life17-Jul-08 6:21 
AnswerRe: WMI Question Pin
Uros Calakovic17-Jul-08 6:35
Uros Calakovic17-Jul-08 6:35 
AnswerRe: WMI Question Pin
Luc Pattyn17-Jul-08 8:33
sitebuilderLuc Pattyn17-Jul-08 8:33 
GeneralRe: WMI Question Pin
#realJSOP17-Jul-08 8:53
professional#realJSOP17-Jul-08 8:53 
QuestionWhat does @ mean now? Pin
Dirso17-Jul-08 5:38
Dirso17-Jul-08 5:38 
AnswerRe: What does @ mean now? Pin
Luc Pattyn17-Jul-08 5:47
sitebuilderLuc Pattyn17-Jul-08 5:47 
AnswerRe: What does @ mean now? Pin
originSH17-Jul-08 5:47
originSH17-Jul-08 5:47 
GeneralRe: What does @ mean now? Pin
Luc Pattyn17-Jul-08 5:59
sitebuilderLuc Pattyn17-Jul-08 5:59 
GeneralRe: What does @ mean now? Pin
originSH17-Jul-08 6:14
originSH17-Jul-08 6:14 
GeneralRe: What does @ mean now? Pin
Luc Pattyn17-Jul-08 6:38
sitebuilderLuc Pattyn17-Jul-08 6:38 
AnswerRe: What does @ mean now? Pin
Dirso17-Jul-08 5:52
Dirso17-Jul-08 5:52 
AnswerRe: What does @ mean now? Pin
Giorgi Dalakishvili17-Jul-08 5:56
mentorGiorgi Dalakishvili17-Jul-08 5:56 
QuestionData Validation Question Pin
Harvey Saayman17-Jul-08 5:11
Harvey Saayman17-Jul-08 5:11 
AnswerRe: Data Validation Question Pin
half-life17-Jul-08 5:49
half-life17-Jul-08 5:49 
AnswerRe: Data Validation Question Pin
Alan Balkany17-Jul-08 7:35
Alan Balkany17-Jul-08 7:35 
AnswerRe: Data Validation Question Pin
Garrett Pauls17-Jul-08 7:42
Garrett Pauls17-Jul-08 7:42 
GeneralRe: Data Validation Question Pin
Harvey Saayman17-Jul-08 20:07
Harvey Saayman17-Jul-08 20:07 
AnswerRe: Data Validation Question Pin
Green Fuze18-Jul-08 2:33
Green Fuze18-Jul-08 2:33 
I can see you already got help with that Smile | :) , but just one more thing:

you wrote:
if (textBox1.Text == "")
{
MessageBox.Show("Please Enter A Name");
textBox1.Focus();
return false;
}

and that is not true, it depends on what you expect.

from this code my name can be " " (white space).
besides that, I saw you're using a db, so if you're building you own queries to the database (which in not recommended), my name can be:
"' OR '1'='1", which might get me a log-in to your system, or even something like: "bla'; DROP TABLE Users /*", which of course I need to get the table name right, but usually it is not so hard.

All I'm trying to point out is, be more careful when performing validation.
Wink | ;)
GeneralRe: Data Validation Question Pin
Harvey Saayman18-Jul-08 4:54
Harvey Saayman18-Jul-08 4:54 
Questioncreate your own version of arraylist in c#?? Pin
lolla200617-Jul-08 4:42
lolla200617-Jul-08 4:42 
AnswerRe: create your own version of arraylist in c#?? Pin
Christian Graus17-Jul-08 4:58
protectorChristian Graus17-Jul-08 4:58 
GeneralRe: create your own version of arraylist in c#?? Pin
lolla200617-Jul-08 9:39
lolla200617-Jul-08 9:39 
GeneralRe: create your own version of arraylist in c#?? Pin
z3irr19-Jul-08 0:56
z3irr19-Jul-08 0:56 

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.