Click here to Skip to main content
15,905,776 members
Home / Discussions / C#
   

C#

 
QuestionListView drag drop example? Pin
azusakt4-Aug-03 15:41
azusakt4-Aug-03 15:41 
AnswerRe: ListView drag drop example? Pin
Khang Nguyen5-Aug-03 12:17
Khang Nguyen5-Aug-03 12:17 
GeneralDatagrid CurrentCellChanged problem Pin
work_to_live4-Aug-03 14:07
work_to_live4-Aug-03 14:07 
GeneralRe: Datagrid CurrentCellChanged problem Pin
Ista8-Aug-03 19:25
Ista8-Aug-03 19:25 
Generaloledbcommand Pin
K4reem4-Aug-03 13:14
K4reem4-Aug-03 13:14 
GeneralRe: oledbcommand Pin
Ista4-Aug-03 17:58
Ista4-Aug-03 17:58 
GeneralRe: oledbcommand Pin
K4reem5-Aug-03 3:53
K4reem5-Aug-03 3:53 
GeneralRe: oledbcommand Pin
Ista5-Aug-03 9:33
Ista5-Aug-03 9:33 
GeneralRe: oledbcommand Pin
K4reem5-Aug-03 9:51
K4reem5-Aug-03 9:51 
GeneralRe: oledbcommand Pin
Ista5-Aug-03 9:57
Ista5-Aug-03 9:57 
GeneralScrolling and drawing with GDI+ and Windows Forms Pin
Arun Bhalla4-Aug-03 12:38
Arun Bhalla4-Aug-03 12:38 
GeneralRe: Scrolling and drawing with GDI+ and Windows Forms Pin
Furty4-Aug-03 15:12
Furty4-Aug-03 15:12 
GeneralRe: Scrolling and drawing with GDI+ and Windows Forms Pin
Arun Bhalla5-Aug-03 6:00
Arun Bhalla5-Aug-03 6:00 
Generalget rows returned from data adapter Pin
mikemilano4-Aug-03 11:46
mikemilano4-Aug-03 11:46 
GeneralRe: get rows returned from data adapter Pin
Alexander Kojevnikov4-Aug-03 22:15
Alexander Kojevnikov4-Aug-03 22:15 
GeneralRe: get rows returned from data adapter Pin
mikemilano5-Aug-03 3:47
mikemilano5-Aug-03 3:47 
GeneralSmall C#, VS2003, CheckedListBox, Intellisense question Pin
Robert L. Edwards4-Aug-03 11:05
Robert L. Edwards4-Aug-03 11:05 
Generalregex functions Pin
mikemilano4-Aug-03 9:40
mikemilano4-Aug-03 9:40 
GeneralRe: regex functions Pin
Eric Gunnerson (msft)4-Aug-03 9:54
Eric Gunnerson (msft)4-Aug-03 9:54 
GeneralRe: regex functions Pin
mikemilano4-Aug-03 10:27
mikemilano4-Aug-03 10:27 
GeneralBest Practice for client/server app Pin
morefire4-Aug-03 9:16
morefire4-Aug-03 9:16 
GeneralRe: Best Practice for client/server app Pin
Heath Stewart4-Aug-03 9:34
protectorHeath Stewart4-Aug-03 9:34 
The best way is to allow for both synchronous and asynchronous calls. One thing that CP articles typically miss is reusability and portability. It's always better to make your application scalable and extensible so that clients can use it however they want (those posing restrictions isn't always a bad thing) and you could even mix sync and async calls. Sometimes one is better than the other - it just depends upon the circumstance. That's the server.

The client is a slightly different matter. The server should be an extensible architecture that scales. The client must choose how to use the server. In the case of Web Services, async methods are generated automatically (if you want). If there is a process in which you want the user to wait and it can't / shouldn't be cancelled - use a sync call. If they can cancel it or you want to update the UI or something while waiting, use an async call.

Now, if you use remoting, you have some further options. Providing scalability is important, but your hardware is limited no matter how big you are. You could always support a certain number of async calls, but after so long the hardware gets sluggish. You could inform your client apps (using channels for example) to start using sync calls to cut-down on the server load.

Basically, everything you're reading is right and wrong. There is no "right" or "wrong" way for every circumstance, but there are "right" and "wrong" times to use different techniques.

I know this answer is a little abstract, but I hope is solves your dilema.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Best Practice for client/server app Pin
morefire4-Aug-03 13:24
morefire4-Aug-03 13:24 
GeneralRe: Best Practice for client/server app Pin
Eric Gunnerson (msft)4-Aug-03 12:02
Eric Gunnerson (msft)4-Aug-03 12:02 
GeneralRe: Best Practice for client/server app Pin
morefire4-Aug-03 13:32
morefire4-Aug-03 13:32 

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.