Click here to Skip to main content
14,867,123 members
Home / Discussions / .NET (Core and Framework)

.NET (Core and Framework)

AnswerRe: "Stub" application Pin
kubben23-Apr-07 9:49
Memberkubben23-Apr-07 9:49 
AnswerRe: "Stub" application Pin
Dave Kreskowiak23-Apr-07 9:53
mveDave Kreskowiak23-Apr-07 9:53 
GeneralRe: "Stub" application Pin
Miszou23-Apr-07 9:58
MemberMiszou23-Apr-07 9:58 
GeneralRe: "Stub" application Pin
Dave Kreskowiak23-Apr-07 11:57
mveDave Kreskowiak23-Apr-07 11:57 
GeneralRe: "Stub" application Pin
Brady Kelly23-Apr-07 20:33
MemberBrady Kelly23-Apr-07 20:33 
GeneralRe: "Stub" application Pin
sthotakura23-Apr-07 21:26
Membersthotakura23-Apr-07 21:26 
GeneralRe: "Stub" application Pin
kubben24-Apr-07 2:26
Memberkubben24-Apr-07 2:26 
QuestionProblems with Exit code in C++ visual studio 2.0 Pin
Debun23-Apr-07 3:49
MemberDebun23-Apr-07 3:49 
AnswerRe: Problems with Exit code in C++ visual studio 2.0 Pin
szukuro23-Apr-07 4:24
Memberszukuro23-Apr-07 4:24 
QuestionProblem in loading a dropdown list using Asp .net Pin
Balagurunathan S22-Apr-07 21:57
MemberBalagurunathan S22-Apr-07 21:57 
AnswerRe: Problem in loading a dropdown list using Asp .net Pin
Pete O'Hanlon23-Apr-07 1:02
mvePete O'Hanlon23-Apr-07 1:02 
Questionreg web dialer Pin
NasimKaziS22-Apr-07 21:20
MemberNasimKaziS22-Apr-07 21:20 
AnswerRe: reg web dialer Pin
Dave Kreskowiak23-Apr-07 5:10
mveDave Kreskowiak23-Apr-07 5:10 
GeneralRe: reg web dialer Pin
NasimKaziS23-Apr-07 18:17
MemberNasimKaziS23-Apr-07 18:17 
QuestionExceptions vs PreValidation Pin
Tristan Rhodes21-Apr-07 3:05
MemberTristan Rhodes21-Apr-07 3:05 
I've been wondering this for a while now, and i'm not sure what the best way to deal with it is.

Basicaly, i have a scenario where data is coming into an aspx page that is tamperable by the user. In this case the Querystring.

I am creating a wrapper class that wrapps the Request and then attempts to parse and strongly type the Querystring values so i can expose them as typed nullable properties.

My question is, whether it is better to Throw an exception on parse failure, or raise an event that informs the invoking application that it failed, and then return null.

I have gone for the second solution becase of the speed over exceptions, but it's something i've been mulling over for a while now.

Generaly i'd rather raise exceptions only for programming state errors and have validation of user changable input handled more gracefully. I was just wondering what other peoples opinions on this are, and what they would recommend.

I recently moved into building more comprehensive exception models for my apps and have found that it removes a lot of the ambiguity from the code.




Carrier Bags - 21st Century Tumbleweed.

AnswerRe: Exceptions vs PreValidation Pin
Colin Angus Mackay22-Apr-07 12:49
MemberColin Angus Mackay22-Apr-07 12:49 
GeneralRe: Exceptions vs PreValidation Pin
Tristan Rhodes22-Apr-07 23:15
MemberTristan Rhodes22-Apr-07 23:15 
QuestionFile Properties values Pin
AustinTom19-Apr-07 15:03
MemberAustinTom19-Apr-07 15:03 
AnswerRe: File Properties values Pin
Luc Pattyn20-Apr-07 3:16
sitebuilderLuc Pattyn20-Apr-07 3:16 2.0 installtion problem Pin
uowzd0119-Apr-07 14:56
Memberuowzd0119-Apr-07 14:56 
AnswerRe: .net 2.0 installtion problem Pin
Dave Kreskowiak19-Apr-07 15:39
mveDave Kreskowiak19-Apr-07 15:39 
GeneralRe: .net 2.0 installtion problem Pin
uowzd0119-Apr-07 15:53
Memberuowzd0119-Apr-07 15:53 
GeneralRe: .net 2.0 installtion problem Pin
Dave Kreskowiak19-Apr-07 15:59
mveDave Kreskowiak19-Apr-07 15:59 
GeneralRe: .net 2.0 installtion problem Pin
uowzd0119-Apr-07 16:09
Memberuowzd0119-Apr-07 16:09 
GeneralRe: .net 2.0 installtion problem Pin
Dave Kreskowiak20-Apr-07 1:55
mveDave Kreskowiak20-Apr-07 1:55 

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.