Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Service Interaction Pin
perlmunger10-Feb-06 11:30
perlmunger10-Feb-06 11:30 
AnswerRe: Windows Service Interaction Pin
Nicholas Butler11-Feb-06 0:28
sitebuilderNicholas Butler11-Feb-06 0:28 
QuestionWhat is 192.168.1.1 Pin
jinzhecheng10-Feb-06 10:18
jinzhecheng10-Feb-06 10:18 
AnswerRe: What is 192.168.1.1 Pin
Stanciu Vlad10-Feb-06 10:24
Stanciu Vlad10-Feb-06 10:24 
GeneralRe: What is 192.168.1.1 Pin
perlmunger10-Feb-06 10:35
perlmunger10-Feb-06 10:35 
AnswerRe: What is 192.168.1.1 Pin
kourvoisier10-Feb-06 12:06
kourvoisier10-Feb-06 12:06 
QuestionValidate Windows Forms Data Pin
Wayne Phipps10-Feb-06 10:02
Wayne Phipps10-Feb-06 10:02 
AnswerRe: Validate Windows Forms Data Pin
perlmunger10-Feb-06 10:55
perlmunger10-Feb-06 10:55 
You didn't specify whether this was a web app or a winforms app. The answer is different depending on that. In a web application, the answer is it should be done on both the UI *and* on the server side. This is because it is possible to circumvent form controls by writing automation scripts that ignore UI validation. You should be validating on both ends--on the client side to provide quick feedback to the user without a round-trip to the server, and on the back end in case something slipped past the client validation.

If, however, you are building a winforms application, it depends on how much detail you give to your design. Good multi-tier design might have you place validation in a business rule, however, there is virtually no danger that the user will hijack the request in a winforms app which means you could validate once on the control and not have to worry about getting bad data.

Anyhow, a google search will provide you with a lot of information on how to validate user data using C#.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
GeneralRe: Validate Windows Forms Data Pin
Wayne Phipps10-Feb-06 11:10
Wayne Phipps10-Feb-06 11:10 
GeneralRe: Validate Windows Forms Data Pin
perlmunger10-Feb-06 11:53
perlmunger10-Feb-06 11:53 
QuestionSocket Exception Delay?? Pin
ckaneAV10-Feb-06 9:03
ckaneAV10-Feb-06 9:03 
AnswerRe: Socket Exception Delay?? Pin
Wayne Phipps10-Feb-06 10:12
Wayne Phipps10-Feb-06 10:12 
GeneralRe: Socket Exception Delay?? Pin
ckaneAV10-Feb-06 10:19
ckaneAV10-Feb-06 10:19 
GeneralRe: Socket Exception Delay?? Pin
Wayne Phipps10-Feb-06 11:22
Wayne Phipps10-Feb-06 11:22 
QuestionProblem: No value given for one or more ... Pin
NaNg1524110-Feb-06 8:50
NaNg1524110-Feb-06 8:50 
AnswerRe: Problem: No value given for one or more ... Pin
perlmunger10-Feb-06 10:57
perlmunger10-Feb-06 10:57 
QuestionClearing Combobox Pin
Syed Umar Anis10-Feb-06 8:49
professionalSyed Umar Anis10-Feb-06 8:49 
AnswerRe: Clearing Combobox Pin
perlmunger10-Feb-06 11:02
perlmunger10-Feb-06 11:02 
QuestionListView OwnerDraw and Custom Background Pin
PicklesTheClown10-Feb-06 8:28
PicklesTheClown10-Feb-06 8:28 
QuestionUnable to get a Profile custom (object) collection to bind to GridView,etc (IList objects)? Pin
kloepper10-Feb-06 8:00
kloepper10-Feb-06 8:00 
QuestionDispalying decimal value in the textbox Pin
zaboboa10-Feb-06 7:41
zaboboa10-Feb-06 7:41 
AnswerRe: Dispalying decimal value in the textbox Pin
Dave Kreskowiak10-Feb-06 7:45
mveDave Kreskowiak10-Feb-06 7:45 
GeneralRe: Dispalying decimal value in the textbox Pin
zaboboa10-Feb-06 7:51
zaboboa10-Feb-06 7:51 
GeneralRe: Dispalying decimal value in the textbox Pin
Dave Kreskowiak10-Feb-06 9:10
mveDave Kreskowiak10-Feb-06 9:10 
GeneralRe: Dispalying decimal value in the textbox Pin
User 665810-Feb-06 9:35
User 665810-Feb-06 9:35 

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.