Click here to Skip to main content
15,892,575 members
Home / Discussions / C#
   

C#

 
GeneralRe: convert to base 64 issue with AES encryption Pin
Member 360949111-Aug-09 17:06
Member 360949111-Aug-09 17:06 
AnswerRe: convert to base 64 issue with AES encryption Pin
Member 360949111-Aug-09 17:22
Member 360949111-Aug-09 17:22 
Question[Message Deleted] Pin
neha_rai11-Aug-09 10:56
neha_rai11-Aug-09 10:56 
AnswerRe: how to clear Pin
Henry Minute11-Aug-09 11:34
Henry Minute11-Aug-09 11:34 
AnswerRe: [Message Deleted] Pin
padmanabhan N11-Aug-09 18:30
padmanabhan N11-Aug-09 18:30 
Questionwhat is the best way for open connection to database ? - discussion Pin
E_Gold11-Aug-09 9:45
E_Gold11-Aug-09 9:45 
AnswerRe: what is the best way for open connection to database ? - discussion Pin
0x3c011-Aug-09 9:49
0x3c011-Aug-09 9:49 
AnswerRe: what is the best way for open connection to database ? - discussion Pin
Henry Minute11-Aug-09 10:39
Henry Minute11-Aug-09 10:39 
Unless totally unavoidable, don't use option 2) (open all the time), considered very naughty.

Go for option 1) when you can.

As far as 3) is concerned try to do it like this:

using (SqlConnection myConnection = new SqlConnection(.....))
{
    myConnection.Open();
  // do your thing here
}


by doing so you avoid having to worry about Dispose() and Close().

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

AnswerRe: what is the best way for open connection to database ? - discussion Pin
Mycroft Holmes11-Aug-09 13:59
professionalMycroft Holmes11-Aug-09 13:59 
AnswerRe: what is the best way for open connection to database ? - discussion Pin
PIEBALDconsult11-Aug-09 16:57
mvePIEBALDconsult11-Aug-09 16:57 
QuestionUnhandled Null Exception error looping through DataGridView Pin
Wheels01211-Aug-09 9:03
Wheels01211-Aug-09 9:03 
AnswerRe: Unhandled Null Exception error looping through DataGridView Pin
0x3c011-Aug-09 9:27
0x3c011-Aug-09 9:27 
GeneralRe: Unhandled Null Exception error looping through DataGridView Pin
Wheels01211-Aug-09 9:33
Wheels01211-Aug-09 9:33 
QuestionProblem with running C# application using ZedGraph Pin
TamasK911-Aug-09 9:02
TamasK911-Aug-09 9:02 
AnswerRe: Problem with running C# application using ZedGraph Pin
Member 360949112-Aug-09 14:35
Member 360949112-Aug-09 14:35 
QuestionPosition of a bitmap into a PictureBox Pin
Mirshinni11-Aug-09 8:36
Mirshinni11-Aug-09 8:36 
AnswerRe: Position of a bitmap into a PictureBox Pin
Henry Minute11-Aug-09 8:46
Henry Minute11-Aug-09 8:46 
GeneralRe: Position of a bitmap into a PictureBox Pin
Mirshinni11-Aug-09 9:36
Mirshinni11-Aug-09 9:36 
GeneralRe: Position of a bitmap into a PictureBox Pin
Henry Minute11-Aug-09 10:21
Henry Minute11-Aug-09 10:21 
AnswerRe: Position of a bitmap into a PictureBox Pin
Luc Pattyn11-Aug-09 22:58
sitebuilderLuc Pattyn11-Aug-09 22:58 
Questionc# vs2008 Reportviewer is not closing the database [modified] Pin
dyohanan11-Aug-09 8:17
dyohanan11-Aug-09 8:17 
QuestionProperly linking inter-dependent libraries Pin
Mike Marynowski11-Aug-09 6:58
professionalMike Marynowski11-Aug-09 6:58 
AnswerRe: Properly linking inter-dependent libraries Pin
Scott Dorman11-Aug-09 7:21
professionalScott Dorman11-Aug-09 7:21 
GeneralRe: Properly linking inter-dependent libraries Pin
Mike Marynowski11-Aug-09 7:28
professionalMike Marynowski11-Aug-09 7:28 
GeneralRe: Properly linking inter-dependent libraries Pin
Scott Dorman11-Aug-09 7:43
professionalScott Dorman11-Aug-09 7:43 

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.