Click here to Skip to main content
16,005,281 members
Home / Discussions / C#
   

C#

 
QuestionCatch Enter-key when focus on a button Pin
mSh198522-Dec-09 0:10
mSh198522-Dec-09 0:10 
AnswerRe: Catch Enter-key when focus on a button Pin
mSh198522-Dec-09 1:27
mSh198522-Dec-09 1:27 
AnswerRe: Catch Enter-key when focus on a button Pin
Islorvat22-Dec-09 9:17
Islorvat22-Dec-09 9:17 
AnswerRe: Catch Enter-key when focus on a button Pin
Md. Marufuzzaman22-Dec-09 10:20
professionalMd. Marufuzzaman22-Dec-09 10:20 
QuestionOne database Connection [modified] Pin
Shivendra Pandey21-Dec-09 23:41
Shivendra Pandey21-Dec-09 23:41 
AnswerRe: One database Connection Pin
Saksida Bojan21-Dec-09 23:49
Saksida Bojan21-Dec-09 23:49 
AnswerRe: One database Connection Pin
Ashfield22-Dec-09 0:26
Ashfield22-Dec-09 0:26 
AnswerRe: One database Connection Pin
Paulo Zemek22-Dec-09 1:53
Paulo Zemek22-Dec-09 1:53 
Probably you don't want that.
For example, if the connection is lost, what happens?
If two clients try to use the connection at the same time? One client starting a transaction will in fact be starting a transaction over the connection used by everyone (for example, in Sql Server if there is a transaction, you must use it).

And, finally, there is the connection pooling. By default, when you open and close a connection, the real connection keeps opened, but it is returned to the pool. Opening it again will only use the already opened connection. So, the best practice is to open the connection for each web-method and close it at the end. You can, of course, configure the maximum pool size to 1, so only one real connection will be kept open.
AnswerRe: One database Connection Pin
hosseinghazanfary22-Dec-09 7:38
hosseinghazanfary22-Dec-09 7:38 
QuestionDatagridviewcomboboxcell value is not valid PinPopular
kvsrikanth21-Dec-09 23:22
kvsrikanth21-Dec-09 23:22 
AnswerRe: Datagridviewcomboboxcell value is not valid Pin
Blue_Boy21-Dec-09 23:31
Blue_Boy21-Dec-09 23:31 
Questionissue with Date Format in SSRS Pin
siddisagar21-Dec-09 22:49
siddisagar21-Dec-09 22:49 
AnswerRe: issue with Date Format in SSRS Pin
Saksida Bojan21-Dec-09 23:23
Saksida Bojan21-Dec-09 23:23 
GeneralRe: issue with Date Format in SSRS Pin
Blue_Boy21-Dec-09 23:33
Blue_Boy21-Dec-09 23:33 
GeneralRe: issue with Date Format in SSRS Pin
Saksida Bojan21-Dec-09 23:39
Saksida Bojan21-Dec-09 23:39 
GeneralRe: issue with Date Format in SSRS Pin
Blue_Boy21-Dec-09 23:54
Blue_Boy21-Dec-09 23:54 
QuestionC# Data link to another PC? Pin
miss YY21-Dec-09 22:20
miss YY21-Dec-09 22:20 
AnswerRe: C# Data link to another PC? Pin
Calla21-Dec-09 22:30
Calla21-Dec-09 22:30 
AnswerRe: C# Data link to another PC? Pin
The Man from U.N.C.L.E.21-Dec-09 22:38
The Man from U.N.C.L.E.21-Dec-09 22:38 
AnswerRe: C# Data link to another PC? Pin
rag_Singh21-Dec-09 22:57
rag_Singh21-Dec-09 22:57 
AnswerRe: C# Data link to another PC? Pin
Md. Marufuzzaman22-Dec-09 10:36
professionalMd. Marufuzzaman22-Dec-09 10:36 
AnswerRe: C# Data link to another PC? [modified] Pin
hamed-vojdani24-Dec-09 7:13
hamed-vojdani24-Dec-09 7:13 
QuestionBeginner Question: Data Binding Controls in C# WinForms Pin
Jyncus21-Dec-09 21:50
Jyncus21-Dec-09 21:50 
QuestionSSRS Date format help required Pin
siddisagar21-Dec-09 18:03
siddisagar21-Dec-09 18:03 
AnswerRe: SSRS Date format help required Pin
Saksida Bojan21-Dec-09 19:29
Saksida Bojan21-Dec-09 19:29 

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.