Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
James T. Johnson18-Aug-03 3:27
James T. Johnson18-Aug-03 3:27 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
devvvy18-Aug-03 5:20
devvvy18-Aug-03 5:20 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
James T. Johnson18-Aug-03 5:44
James T. Johnson18-Aug-03 5:44 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
devvvy18-Aug-03 6:51
devvvy18-Aug-03 6:51 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
James T. Johnson18-Aug-03 11:27
James T. Johnson18-Aug-03 11:27 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
devvvy18-Aug-03 15:07
devvvy18-Aug-03 15:07 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
James T. Johnson18-Aug-03 15:26
James T. Johnson18-Aug-03 15:26 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
devvvy18-Aug-03 18:05
devvvy18-Aug-03 18:05 
QuestionWhere r the Shape and Line Controls??? Pin
pShay17-Aug-03 21:43
pShay17-Aug-03 21:43 
AnswerRe: Where r the Shape and Line Controls??? Pin
Sascha Andres17-Aug-03 23:27
Sascha Andres17-Aug-03 23:27 
AnswerRe: Where r the Shape and Line Controls??? Pin
Ista18-Aug-03 16:59
Ista18-Aug-03 16:59 
Generalexposing remoting from ASP.NET Pin
devvvy17-Aug-03 20:37
devvvy17-Aug-03 20:37 
Question"as" keyword in C#? Pin
devvvy17-Aug-03 20:06
devvvy17-Aug-03 20:06 
AnswerRe: "as" keyword in C#? Pin
Roger Alsing17-Aug-03 20:10
Roger Alsing17-Aug-03 20:10 
AnswerRe: "as" keyword in C#? Pin
J. Dunlap17-Aug-03 20:17
J. Dunlap17-Aug-03 20:17 
GeneralRe: "as" keyword in C#? Pin
devvvy17-Aug-03 20:39
devvvy17-Aug-03 20:39 
AnswerRe: "as" keyword in C#? Pin
Russell Morris18-Aug-03 4:30
Russell Morris18-Aug-03 4:30 
GeneralRe: "as" keyword in C#? Pin
devvvy18-Aug-03 5:11
devvvy18-Aug-03 5:11 
GeneralMy Network Places Pin
Nick Seng17-Aug-03 17:04
Nick Seng17-Aug-03 17:04 
GeneralRe: My Network Places Pin
Mazdak17-Aug-03 19:48
Mazdak17-Aug-03 19:48 
GeneralRe: My Network Places Pin
Nick Seng17-Aug-03 20:02
Nick Seng17-Aug-03 20:02 
GeneralProblem whit loops :x Pin
heelios17-Aug-03 16:03
heelios17-Aug-03 16:03 
GeneralRe: Problem whit loops :x Pin
Nathan Blomquist17-Aug-03 17:02
Nathan Blomquist17-Aug-03 17:02 
What the compiler is saying, is that "not all code paths return a value". This is because you don't return anything outside the foreach loop.

The problem lies in the fact that it is theoritically possible that the queryCollection is empty. If it is empty you bypass the loop and go directly to the end of the method. Return something after the loop and the problem will go away.

Also, are you sure you only want to execute the loop once? I mean right when you enter the foreach for the first time you will be exiting the method also.

-Nathan

---------------------------
Hmmm... what's a signature?
Generaldatagrid update failure Pin
dorianr17-Aug-03 14:36
dorianr17-Aug-03 14:36 
GeneralRe: datagrid update failure Pin
Sascha Andres17-Aug-03 23:37
Sascha Andres17-Aug-03 23:37 

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.