Click here to Skip to main content
15,895,011 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Data Binding - DropDownList Pin
brian5523-Apr-05 2:39
brian5523-Apr-05 2:39 
GeneralOrder of Postback and Session Variables Pin
Sue Oates17-Apr-05 20:43
Sue Oates17-Apr-05 20:43 
QuestionScrapper, anyone? Pin
mijan17-Apr-05 20:14
mijan17-Apr-05 20:14 
Questionhow to scan any damages in our page? Pin
mijan17-Apr-05 17:41
mijan17-Apr-05 17:41 
Generalxmlhttprequest from javascript in Firefox Pin
SimonS16-Apr-05 23:50
SimonS16-Apr-05 23:50 
GeneralGet html content from an URL by client-side scripting Pin
kokain15-Apr-05 16:37
kokain15-Apr-05 16:37 
GeneralData Access to Biz Layer Pin
1.21 Gigawatts15-Apr-05 4:03
1.21 Gigawatts15-Apr-05 4:03 
GeneralRe: Data Access to Biz Layer Pin
Colin Angus Mackay17-Apr-05 0:31
Colin Angus Mackay17-Apr-05 0:31 
In general the communication can be summarised as follows. The upper teir (UI on top, then Business, then Data on the bottom) can call into the teir below. If the lower teir below needs to communicate upwards then use events so that the coupling between layers is reduced. i.e. the lower teir exposes a number of events which it fires and the upper teir subscribes to those events. For a good example look at the way events are used in the UI layer so that Microsoft don't need to know anything about your code in order for their UI code to invoke your methods.

Daniel Fowler wrote:
I don't want to rely on exceptions as it slows down execution

What is an exception for? It is for when something exceptional happens. If you expect that the database isn't going to be there then you should test for that in advance. If a missing database is really a very rare and totally exceptional thing to happen then you should use exceptions. Don't use the tired argument that exceptions are slow to avoid them. Yes, exceptions are slow - but then the circumstances in which they are thrown are exceptional and should not happen often. If your code is throwning many exceptions a second then I would say that your code is wrong. If it throws an exception only occasionally then it sounds as if it is going great (assuming that you are catching and handling the exception).


Daniel Fowler wrote:
In the past I've created a class that holds the information from the query to the DB, which has an error object, which will tell you if the operation was succesfull.

And how did the database communicate a failure? Most likely it threw an exception. In which case just let up bubble up to where it can be handled most efficiently.


My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralRe: Data Access to Biz Layer Pin
Anonymous17-Apr-05 6:42
Anonymous17-Apr-05 6:42 
GeneralProblem with table height attribute Pin
ed welch15-Apr-05 3:03
ed welch15-Apr-05 3:03 
GeneralRe: Problem with table height attribute Pin
DavidNohejl15-Apr-05 3:25
DavidNohejl15-Apr-05 3:25 
GeneralRe: Problem with table height attribute Pin
ed welch20-Apr-05 9:36
ed welch20-Apr-05 9:36 
Questionhow to refresh Pin
ganeshMohan15-Apr-05 1:53
ganeshMohan15-Apr-05 1:53 
AnswerRe: how to refresh Pin
RetiredAlchemist15-Apr-05 18:00
RetiredAlchemist15-Apr-05 18:00 
GeneralIdeas for a XML Web Service Project Pin
steve_rm14-Apr-05 11:43
steve_rm14-Apr-05 11:43 
GeneralBrowser Compliance Issue--- Please Help Pin
Member 138504914-Apr-05 7:42
Member 138504914-Apr-05 7:42 
GeneralRe: Browser Compliance Issue--- Please Help Pin
Christian Graus17-Apr-05 18:15
protectorChristian Graus17-Apr-05 18:15 
GeneralAny one get a class Pin
Anonymous13-Apr-05 2:49
Anonymous13-Apr-05 2:49 
GeneralRe: Any one get a class Pin
Vasudevan Deepak Kumar13-Apr-05 4:52
Vasudevan Deepak Kumar13-Apr-05 4:52 
GeneralRe: Any one get a class Pin
MoustafaS16-Apr-05 11:58
MoustafaS16-Apr-05 11:58 
Generalanyone can help with my asp error Pin
Amalan Simon12-Apr-05 20:09
Amalan Simon12-Apr-05 20:09 
GeneralRe: anyone can help with my asp error Pin
Vasudevan Deepak Kumar13-Apr-05 4:57
Vasudevan Deepak Kumar13-Apr-05 4:57 
GeneralRe: anyone can help with my asp error Pin
Amalan Simon13-Apr-05 21:07
Amalan Simon13-Apr-05 21:07 
Questionhow to draw a curve with axis in javascript Pin
ganeshMohan12-Apr-05 19:21
ganeshMohan12-Apr-05 19:21 
AnswerRe: how to draw a curve with axis in javascript Pin
Anonymous13-Apr-05 11:38
Anonymous13-Apr-05 11:38 

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.