Click here to Skip to main content
15,921,169 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data Structure Pin
Mark Churchill17-Nov-08 11:42
Mark Churchill17-Nov-08 11:42 
AnswerRe: Data Structure Pin
Guffa16-Nov-08 13:05
Guffa16-Nov-08 13:05 
AnswerRe: Data Structure Pin
Mycroft Holmes16-Nov-08 15:15
professionalMycroft Holmes16-Nov-08 15:15 
QuestionCasting Error Pin
Vimalsoft(Pty) Ltd16-Nov-08 4:02
professionalVimalsoft(Pty) Ltd16-Nov-08 4:02 
AnswerRe: Casting Error Pin
Wendelius16-Nov-08 4:38
mentorWendelius16-Nov-08 4:38 
GeneralRe: Casting Error Pin
Guffa16-Nov-08 6:58
Guffa16-Nov-08 6:58 
GeneralRe: Casting Error Pin
Wendelius16-Nov-08 9:44
mentorWendelius16-Nov-08 9:44 
AnswerRe: Casting Error Pin
Guffa16-Nov-08 7:01
Guffa16-Nov-08 7:01 
Vuyiswa Maseko wrote:
My SP Returns "0", if there is no Role Found.


Yes, that is what it returns in the result, but you throw away the result.

What you are using is the output parameter @Role, and that does not return zero if there is no role found, it returns null.

There are three possible solutions for you:

1. Use the result instead of the parameter.

2. Change the stored procedure so that the parameter gets the value zero if no role was found.

3. Check if the parameter value is DbNull before you try to cast it.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Casting Error Pin
Vimalsoft(Pty) Ltd16-Nov-08 9:25
professionalVimalsoft(Pty) Ltd16-Nov-08 9:25 
GeneralRe: Casting Error Pin
Guffa16-Nov-08 13:10
Guffa16-Nov-08 13:10 
Answer[Resolved]Re: Casting Error Pin
Vimalsoft(Pty) Ltd16-Nov-08 19:29
professionalVimalsoft(Pty) Ltd16-Nov-08 19:29 
QuestionSolution for Tower of Hanoi with Breadth First Search Algorithm ? Pin
Mohammad Dayyan16-Nov-08 2:34
Mohammad Dayyan16-Nov-08 2:34 
AnswerRe: Solution for Tower of Hanoi with Breadth First Search Algorithm ? PinPopular
#realJSOP16-Nov-08 3:01
professional#realJSOP16-Nov-08 3:01 
GeneralRe: Solution for Tower of Hanoi with Breadth First Search Algorithm ? Pin
Mohammad Dayyan16-Nov-08 16:16
Mohammad Dayyan16-Nov-08 16:16 
AnswerRe: Solution for Tower of Hanoi with Breadth First Search Algorithm ? Pin
Christian Graus16-Nov-08 12:58
protectorChristian Graus16-Nov-08 12:58 
GeneralRe: Solution for Tower of Hanoi with Breadth First Search Algorithm ? Pin
Mohammad Dayyan16-Nov-08 16:15
Mohammad Dayyan16-Nov-08 16:15 
GeneralRe: Solution for Tower of Hanoi with Breadth First Search Algorithm ? Pin
Paul Conrad16-Nov-08 17:46
professionalPaul Conrad16-Nov-08 17:46 
Questiondatabind pictureBox control to Northwind Employees table Pin
papori123416-Nov-08 2:25
papori123416-Nov-08 2:25 
Question32Bits Depth Images to 24Bits Depth Image c# Pin
saberbladez16-Nov-08 2:11
saberbladez16-Nov-08 2:11 
AnswerRe: 32Bits Depth Images to 24Bits Depth Image c# Pin
#realJSOP16-Nov-08 3:02
professional#realJSOP16-Nov-08 3:02 
AnswerRe: 32Bits Depth Images to 24Bits Depth Image c# Pin
Christian Graus16-Nov-08 13:00
protectorChristian Graus16-Nov-08 13:00 
QuestionMaking a function return a type value specified Pin
Chris Copeland16-Nov-08 2:09
mveChris Copeland16-Nov-08 2:09 
AnswerRe: Making a function return a type value specified Pin
Giorgi Dalakishvili16-Nov-08 3:05
mentorGiorgi Dalakishvili16-Nov-08 3:05 
AnswerRe: Making a function return a type value specified Pin
#realJSOP16-Nov-08 3:13
professional#realJSOP16-Nov-08 3:13 
GeneralRe: Making a function return a type value specified Pin
Chris Copeland16-Nov-08 3:40
mveChris Copeland16-Nov-08 3:40 

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.