Click here to Skip to main content
15,889,767 members
Home / Discussions / C#
   

C#

 
GeneralRe: Parsing JSon Pin
OriginalGriff15-Nov-18 23:03
mveOriginalGriff15-Nov-18 23:03 
GeneralRe: Parsing JSon Success Pin
pkfox15-Nov-18 23:19
professionalpkfox15-Nov-18 23:19 
GeneralRe: Parsing JSon Success Pin
OriginalGriff15-Nov-18 23:37
mveOriginalGriff15-Nov-18 23:37 
GeneralRe: Parsing JSon Success Pin
pkfox15-Nov-18 23:39
professionalpkfox15-Nov-18 23:39 
GeneralRe: Parsing JSon Success Pin
pkfox16-Nov-18 2:57
professionalpkfox16-Nov-18 2:57 
QuestionGuys need your help am trying to insert data in MS Access database but its giving me a "Syntax Error" and i cnt find the problem....please analyse it and help Pin
Member 1405572615-Nov-18 2:09
Member 1405572615-Nov-18 2:09 
AnswerRe: Guys need your help am trying to insert data in MS Access database but its giving me a "Syntax Error" and i cnt find the problem....please analyse it and help Pin
OriginalGriff15-Nov-18 2:17
mveOriginalGriff15-Nov-18 2:17 
AnswerRe: Guys need your help am trying to insert data in MS Access database but its giving me a "Syntax Error" and i cnt find the problem....please analyse it and help Pin
Member 1332584615-Nov-18 21:00
Member 1332584615-Nov-18 21:00 
//OleDb Connection String.
private int EditID = 0;
private static string Connection = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + Application.StartupPath + @"\PostalDBS.accdb";

if (EditID == 0)
{
OleDbConnection con = new OleDbConnection(Connection);
OleDbCommand com = new OleDbCommand("Insert Into ["+cbobxco1f1.Text.ToString()+"] (ID,name,lastname,coname,handinto,handindate,handoverto,unit,parcelrecieve,Description) Values (@ID, @name,@lastname,@coname,@handinto,@handindate,@handoverto,@unit,@parcelrecieve,@Description)", con);

com.Parameters.AddWithValue("@ID", txtrwno1f1.Text);
com.Parameters.AddWithValue("@name", txtname1f1.Text);
com.Parameters.AddWithValue("@lastname", txtfam1f1.Text);
com.Parameters.AddWithValue("@coname", txtco1f1.Text);
com.Parameters.AddWithValue("@handinto", txthndin1f1.Text);
com.Parameters.AddWithValue("@handindate", txthndodate1f1.Text);
com.Parameters.AddWithValue("@handoverto", hndover1f1.Text);
com.Parameters.AddWithValue("@unit", txtunit1f1.Text);
com.Parameters.AddWithValue("@parcelrecieve", chbxparcel1f1.Checked);
com.Parameters.AddWithValue("@Description", txtdescrip1f1.Text);
con.Open();
com.ExecuteNonQuery();
con.Close();
}
//Note: Make sure that you have installed database engine provider based on your OS(*64 or *86)
//This work perfect for me with office v2010.

modified 16-Nov-18 12:03pm.

QuestionTo MD5 or not? (or SHA256 instead, I guess...) Pin
Super Lloyd14-Nov-18 15:34
Super Lloyd14-Nov-18 15:34 
AnswerRe: To MD5 or not? (or SHA256 instead, I guess...) PinPopular
Dave Kreskowiak14-Nov-18 16:37
mveDave Kreskowiak14-Nov-18 16:37 
GeneralRe: To MD5 or not? (or SHA256 instead, I guess...) Pin
Super Lloyd14-Nov-18 17:41
Super Lloyd14-Nov-18 17:41 
AnswerRe: To MD5 or not? (or SHA256 instead, I guess...) PinPopular
OriginalGriff14-Nov-18 19:52
mveOriginalGriff14-Nov-18 19:52 
GeneralRe: To MD5 or not? (or SHA256 instead, I guess...) Pin
Super Lloyd14-Nov-18 20:05
Super Lloyd14-Nov-18 20:05 
GeneralRe: To MD5 or not? (or SHA256 instead, I guess...) Pin
OriginalGriff14-Nov-18 20:09
mveOriginalGriff14-Nov-18 20:09 
Questionc# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx14-Nov-18 13:28
professionaljkirkerx14-Nov-18 13:28 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
OriginalGriff14-Nov-18 19:58
mveOriginalGriff14-Nov-18 19:58 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx15-Nov-18 7:54
professionaljkirkerx15-Nov-18 7:54 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
Nathan Minier15-Nov-18 1:17
professionalNathan Minier15-Nov-18 1:17 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx15-Nov-18 7:58
professionaljkirkerx15-Nov-18 7:58 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
BillWoodruff15-Nov-18 13:36
professionalBillWoodruff15-Nov-18 13:36 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx16-Nov-18 9:40
professionaljkirkerx16-Nov-18 9:40 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
Mycroft Holmes15-Nov-18 13:59
professionalMycroft Holmes15-Nov-18 13:59 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx16-Nov-18 9:44
professionaljkirkerx16-Nov-18 9:44 
QuestionCorrelation Between two different Charts in C# Pin
Member 1332584614-Nov-18 12:08
Member 1332584614-Nov-18 12:08 
QuestionDetect Network / VPN Connection Pin
Kevin Marois14-Nov-18 7:25
professionalKevin Marois14-Nov-18 7:25 

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.