Click here to Skip to main content
15,893,814 members
Home / Discussions / C#
   

C#

 
Question'System.ComponentModel.win32Exception' Pin
Ankit Aneja5-Feb-07 19:25
Ankit Aneja5-Feb-07 19:25 
AnswerRe: 'System.ComponentModel.win32Exception' Pin
Judah Gabriel Himango6-Feb-07 8:05
sponsorJudah Gabriel Himango6-Feb-07 8:05 
QuestionHow can I SMTP and POP3 Pin
sjs4u5-Feb-07 18:55
sjs4u5-Feb-07 18:55 
AnswerRe: How can I SMTP and POP3 Pin
Christian Graus5-Feb-07 19:47
protectorChristian Graus5-Feb-07 19:47 
QuestionHelp on Remember password Pin
Nekshan5-Feb-07 18:40
Nekshan5-Feb-07 18:40 
AnswerRe: Help on Remember password Pin
Christian Graus5-Feb-07 19:50
protectorChristian Graus5-Feb-07 19:50 
QuestionThanx Graus ... Pin
Nekshan5-Feb-07 21:36
Nekshan5-Feb-07 21:36 
AnswerRe: Thanx Graus ... Pin
althamda5-Feb-07 23:12
althamda5-Feb-07 23:12 
You're not executing your query - try cmd.ExecuteNonQuery(); before you close the connection. You might find you also need a cmd.Prepare(); after setting your parameters.

It's also good practice to have your open statement in a try block and your close in a finally block.

Instead of using 3 lines for each of your parameters you can create parameters like this

cmd.Parameters.Add("@value", SqlDbType.VarChar, 50).Value = textBox1.Text;

Hope this helps.
AnswerRe: Thanx Graus ... Pin
VirtualVoid.NET6-Feb-07 3:28
VirtualVoid.NET6-Feb-07 3:28 
QuestionUse of OpenPOP.dll in C# asp.net web application Pin
EEmaan5-Feb-07 18:07
EEmaan5-Feb-07 18:07 
QuestionVisual studio 2005 C#.Net Pin
Sri harini5-Feb-07 18:01
Sri harini5-Feb-07 18:01 
AnswerRe: Visual studio 2005 C#.Net Pin
bobsugar2225-Feb-07 21:35
bobsugar2225-Feb-07 21:35 
QuestionWindows CE database Pin
Dinesh_v5-Feb-07 17:29
Dinesh_v5-Feb-07 17:29 
Questionip address conflict Pin
swethakk5-Feb-07 17:23
swethakk5-Feb-07 17:23 
Questionip address conflict Pin
swethakk5-Feb-07 17:22
swethakk5-Feb-07 17:22 
Question.NET Pin
vasini5-Feb-07 17:03
vasini5-Feb-07 17:03 
AnswerRe: .NET Pin
Sandeep Akhare5-Feb-07 19:22
Sandeep Akhare5-Feb-07 19:22 
QuestionHelp in Use of media player in C# Asp.net web application Pin
EEmaan5-Feb-07 16:57
EEmaan5-Feb-07 16:57 
QuestionGenerics Pin
mehrdadc485-Feb-07 16:20
mehrdadc485-Feb-07 16:20 
AnswerRe: Generics Pin
Christian Graus5-Feb-07 17:31
protectorChristian Graus5-Feb-07 17:31 
Questionxml parsing help please Pin
snouto5-Feb-07 14:55
snouto5-Feb-07 14:55 
AnswerRe: xml parsing help please Pin
Sandeep Akhare5-Feb-07 18:56
Sandeep Akhare5-Feb-07 18:56 
QuestionOpening documents on program startup Pin
TheBirdman995-Feb-07 13:10
TheBirdman995-Feb-07 13:10 
AnswerRe: Opening documents on program startup Pin
Christian Graus5-Feb-07 13:12
protectorChristian Graus5-Feb-07 13:12 
GeneralRe: Opening documents on program startup [modified] Pin
TheBirdman995-Feb-07 13:15
TheBirdman995-Feb-07 13:15 

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.