Click here to Skip to main content
15,908,626 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 10:44
leckey12-Jul-06 10:44 
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 10:48
protectorChristian Graus12-Jul-06 10:48 
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 10:50
leckey12-Jul-06 10:50 
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 10:58
protectorChristian Graus12-Jul-06 10:58 
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 11:02
leckey12-Jul-06 11:02 
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 11:09
protectorChristian Graus12-Jul-06 11:09 
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 11:15
leckey12-Jul-06 11:15 
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 11:17
protectorChristian Graus12-Jul-06 11:17 
It's actually an instance of a connection, which itself is built from the string.

SQLConnection is the class, I think.

// return(int) cmd.Parameters["@ID"].Value;

The return statement will work here, it will box the int and return it as an object. Why is this event handler trying to return an object, where was it called from ? An event handler returns void.

I doubt you want to return a boxed int tho, do you ? My method returned int and was inside a data layer, called from my business layer.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 11:09
protectorChristian Graus12-Jul-06 11:09 
AnswerRe: Problem with code returning parameter from stored procedure [modified] Pin
Jon Sagara12-Jul-06 11:14
Jon Sagara12-Jul-06 11:14 
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 11:24
leckey12-Jul-06 11:24 
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 11:36
protectorChristian Graus12-Jul-06 11:36 
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 11:50
leckey12-Jul-06 11:50 
Questionreturn code from console application Pin
Petes197312-Jul-06 9:45
Petes197312-Jul-06 9:45 
AnswerRe: return code from console application Pin
led mike12-Jul-06 9:56
led mike12-Jul-06 9:56 
GeneralRe: return code from console application Pin
Petes197312-Jul-06 10:02
Petes197312-Jul-06 10:02 
GeneralRe: return code from console application Pin
led mike12-Jul-06 10:17
led mike12-Jul-06 10:17 
GeneralRe: return code from console application Pin
Petes197312-Jul-06 10:30
Petes197312-Jul-06 10:30 
QuestionDisplaying Calculation results. [modified] Pin
Skanless12-Jul-06 9:42
Skanless12-Jul-06 9:42 
AnswerRe: Displaying Calculation results. Pin
Guffa12-Jul-06 12:32
Guffa12-Jul-06 12:32 
QuestionDifference between Thread.Start() and Delegate.BeginInvoke() Pin
zaboboa12-Jul-06 9:40
zaboboa12-Jul-06 9:40 
AnswerRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Josh Smith12-Jul-06 9:55
Josh Smith12-Jul-06 9:55 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() [modified] Pin
zaboboa12-Jul-06 10:00
zaboboa12-Jul-06 10:00 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Josh Smith12-Jul-06 10:12
Josh Smith12-Jul-06 10:12 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Alexander Wiseman12-Jul-06 13:12
Alexander Wiseman12-Jul-06 13:12 

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.