Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
AnswerRe: Remembering Variables Pin
PIEBALDconsult24-Nov-09 17:56
mvePIEBALDconsult24-Nov-09 17:56 
AnswerRe: Remembering Variables Pin
Abhijit Jana24-Nov-09 18:04
professionalAbhijit Jana24-Nov-09 18:04 
GeneralRe: Remembering Variables Pin
johntwebb24-Nov-09 18:24
johntwebb24-Nov-09 18:24 
JokeRe: Remembering Variables Pin
Mycroft Holmes24-Nov-09 18:43
professionalMycroft Holmes24-Nov-09 18:43 
AnswerRe: Remembering Variables Pin
Shameel25-Nov-09 2:18
professionalShameel25-Nov-09 2:18 
AnswerRe: Remembering Variables Pin
Natza Mitzi26-Nov-09 8:26
Natza Mitzi26-Nov-09 8:26 
AnswerRe: Remembering Variables Pin
avigodse26-Nov-09 19:20
professionalavigodse26-Nov-09 19:20 
Questionhow to validate name with databae table (no space) Pin
LTMKH24-Nov-09 17:27
LTMKH24-Nov-09 17:27 
hello all.
I want to validate category name before insert all information about category into database.
The following condition is the way i want to compare:
Ex: ------------------------------------------------------------------------
| name in TblCategory | name in Text box | comparative result |
------------------------------------------------------------------------
| white bag | whitebag | existing |
------------------------------------------------------------------------
| whitebag | white bag | existing |
------------------------------------------------------------------------
| White Bag | white bag | existing |
------------------------------------------------------------------------


I use this following function in sql database:
BEGIN
IF EXISTS(SELECT TOP 1 *
FROM TblCategory c
WHERE (c.c_name=@name OR c.c_name=REPLACE(@name,' ',''))
AND c.c_id <> @id
)
SET @result=1
ELSE
SET @result =0
END

this give me bad result if TblCategory (white bag) and TextBox to compare has word(whitbag)...this can't compare to me
AnswerRe: how to validate name with databae table (no space) Pin
dan!sh 24-Nov-09 18:08
professional dan!sh 24-Nov-09 18:08 
AnswerRe: how to validate name with databae table (no space) Pin
Mycroft Holmes24-Nov-09 18:48
professionalMycroft Holmes24-Nov-09 18:48 
AnswerRe: how to validate name with databae table (no space) Pin
Shameel24-Nov-09 23:07
professionalShameel24-Nov-09 23:07 
GeneralRe: how to validate name with databae table (no space) Pin
LTMKH27-Nov-09 15:57
LTMKH27-Nov-09 15:57 
GeneralRe: how to validate name with databae table (no space) Pin
Shameel27-Nov-09 18:54
professionalShameel27-Nov-09 18:54 
GeneralRe: how to validate name with databae table (no space) Pin
LTMKH27-Nov-09 20:33
LTMKH27-Nov-09 20:33 
GeneralRe: how to validate name with databae table (no space) Pin
Shameel27-Nov-09 21:54
professionalShameel27-Nov-09 21:54 
GeneralRe: how to validate name with databae table (no space) Pin
LTMKH30-Nov-09 15:16
LTMKH30-Nov-09 15:16 
GeneralRe: how to validate name with databae table (no space) Pin
LTMKH30-Nov-09 15:18
LTMKH30-Nov-09 15:18 
QuestionC# ADO.net Adapter Update Question. Pin
adamzimmer24-Nov-09 17:00
adamzimmer24-Nov-09 17:00 
AnswerRe: C# ADO.net Adapter Update Question. Pin
PIEBALDconsult24-Nov-09 18:18
mvePIEBALDconsult24-Nov-09 18:18 
GeneralRe: C# ADO.net Adapter Update Question. Pin
adamzimmer25-Nov-09 4:42
adamzimmer25-Nov-09 4:42 
AnswerRe: C# ADO.net Adapter Update Question. Pin
Mycroft Holmes24-Nov-09 18:52
professionalMycroft Holmes24-Nov-09 18:52 
AnswerRe: C# ADO.net Adapter Update Question. Pin
dxlee25-Nov-09 3:52
dxlee25-Nov-09 3:52 
GeneralRe: C# ADO.net Adapter Update Question. Pin
adamzimmer25-Nov-09 4:52
adamzimmer25-Nov-09 4:52 
QuestionMSMQ Pin
Tiger45624-Nov-09 7:11
Tiger45624-Nov-09 7:11 
AnswerRe: MSMQ Pin
Jimmanuel24-Nov-09 7:31
Jimmanuel24-Nov-09 7:31 

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.