Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
Questionrequest: fixing a codeproject programm Pin
no_idea20-Nov-09 6:40
no_idea20-Nov-09 6:40 
AnswerRe: request: fixing a codeproject programm Pin
DaveyM6920-Nov-09 8:18
professionalDaveyM6920-Nov-09 8:18 
GeneralRe: request: fixing a codeproject programm Pin
no_idea20-Nov-09 10:16
no_idea20-Nov-09 10:16 
GeneralRe: request: fixing a codeproject programm Pin
DaveyM6920-Nov-09 16:29
professionalDaveyM6920-Nov-09 16:29 
GeneralRe: request: fixing a codeproject programm Pin
dojohansen23-Nov-09 10:50
dojohansen23-Nov-09 10:50 
QuestionAlter table in dataset Pin
daniel kuperberg20-Nov-09 6:36
daniel kuperberg20-Nov-09 6:36 
AnswerRe: Alter table in dataset Pin
dojohansen23-Nov-09 10:53
dojohansen23-Nov-09 10:53 
Questionbetter way to make function returns Pin
netJP12L20-Nov-09 6:13
netJP12L20-Nov-09 6:13 
Hi,

I want to know what's the best way to return value from a fuction in a web service. Presently, a true value is returned if function ran successfully and a false value if not.

So my question is how can i return a value in between them (like true and false value). For instance, a function can get crashed while doing something inside, connecting to the database or couldn't delete a locked file and several other reasons.

I have created functions like these.
public bool AddUser(string username)
public bool DeleteUser(string userID)
public bool GetUser(string userID)
public bool DeleteFile(string fileID)
AnswerMessage Closed Pin
20-Nov-09 6:15
stancrm20-Nov-09 6:15 
GeneralRe: better way to make function returns Pin
netJP12L20-Nov-09 6:28
netJP12L20-Nov-09 6:28 
GeneralRe: better way to make function returns [modified] Pin
Saksida Bojan20-Nov-09 6:34
Saksida Bojan20-Nov-09 6:34 
GeneralRe: better way to make function returns Pin
netJP12L20-Nov-09 6:50
netJP12L20-Nov-09 6:50 
GeneralRe: better way to make function returns Pin
Saksida Bojan20-Nov-09 6:59
Saksida Bojan20-Nov-09 6:59 
AnswerRe: better way to make function returns Pin
0x3c020-Nov-09 6:38
0x3c020-Nov-09 6:38 
AnswerRe: better way to make function returns Pin
musefan20-Nov-09 7:39
musefan20-Nov-09 7:39 
GeneralRe: better way to make function returns Pin
netJP12L20-Nov-09 8:34
netJP12L20-Nov-09 8:34 
AnswerRe: better way to make function returns Pin
dojohansen23-Nov-09 10:59
dojohansen23-Nov-09 10:59 
QuestionStream closes while reading a socket Pin
joana.simoes20-Nov-09 5:11
joana.simoes20-Nov-09 5:11 
AnswerRe: Stream closes while reading a socket Pin
Paulo Zemek20-Nov-09 5:57
mvaPaulo Zemek20-Nov-09 5:57 
GeneralRe: Stream closes while reading a socket Pin
joana.simoes20-Nov-09 6:19
joana.simoes20-Nov-09 6:19 
GeneralRe: Stream closes while reading a socket Pin
Paulo Zemek22-Nov-09 7:44
mvaPaulo Zemek22-Nov-09 7:44 
AnswerRe: Stream closes while reading a socket Pin
Luc Pattyn20-Nov-09 6:27
sitebuilderLuc Pattyn20-Nov-09 6:27 
GeneralRe: Stream closes while reading a socket Pin
joana.simoes23-Nov-09 0:13
joana.simoes23-Nov-09 0:13 
GeneralRe: Stream closes while reading a socket Pin
joana.simoes23-Nov-09 0:39
joana.simoes23-Nov-09 0:39 
GeneralRe: Stream closes while reading a socket Pin
Luc Pattyn23-Nov-09 0:43
sitebuilderLuc Pattyn23-Nov-09 0:43 

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.