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

.NET (Core and Framework)

 
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.

Cheers

Tris

-------------------------------

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 
Question.net 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 
GeneralRe: .net 2.0 installtion problem Pin
Vega0219-Apr-07 16:08
MemberVega0219-Apr-07 16:08 
GeneralRe: .net 2.0 installtion problem Pin
uowzd0119-Apr-07 16:14
Memberuowzd0119-Apr-07 16:14 
GeneralRe: .net 2.0 installtion problem Pin
uowzd0119-Apr-07 17:48
Memberuowzd0119-Apr-07 17:48 
GeneralRe: .net 2.0 installtion problem Pin
Dave Kreskowiak20-Apr-07 1:56
mveDave Kreskowiak20-Apr-07 1:56 
GeneralRe: .net 2.0 installtion problem Pin
Vega0220-Apr-07 6:29
MemberVega0220-Apr-07 6:29 
QuestionSecurity problem with Word 2007 add-in Pin
Eagle_Wizard19-Apr-07 2:45
MemberEagle_Wizard19-Apr-07 2:45 
QuestionQuestion about Trace Pin
Tristan Rhodes18-Apr-07 23:57
MemberTristan Rhodes18-Apr-07 23:57 

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.