Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to convert the generated barcode into image like JPG and save it into local folder. Pin
Member 105230295-Feb-14 1:28
professionalMember 105230295-Feb-14 1:28 
GeneralRe: How to convert the generated barcode into image like JPG and save it into local folder. Pin
lukeer5-Feb-14 1:39
lukeer5-Feb-14 1:39 
QuestionIssues in Connecting to SQL Server Database (on other machine) with C# windows Application Pin
Mohan Subramani4-Feb-14 4:46
Mohan Subramani4-Feb-14 4:46 
AnswerRe: Issues in Connecting to SQL Server Database (on other machine) with C# windows Application Pin
Richard Deeming4-Feb-14 4:51
mveRichard Deeming4-Feb-14 4:51 
GeneralRe: Issues in Connecting to SQL Server Database (on other machine) with C# windows Application Pin
Mohan Subramani4-Feb-14 23:01
Mohan Subramani4-Feb-14 23:01 
GeneralRe: Issues in Connecting to SQL Server Database (on other machine) with C# windows Application Pin
Richard Deeming5-Feb-14 2:43
mveRichard Deeming5-Feb-14 2:43 
AnswerRe: Issues in Connecting to SQL Server Database (on other machine) with C# windows Application Pin
John D. Sanders4-Feb-14 9:11
John D. Sanders4-Feb-14 9:11 
QuestionExecution of query?? Pin
Member 105648504-Feb-14 0:42
Member 105648504-Feb-14 0:42 
try
{
string s = "INSERT INTO [Students Records] (Name,Age,Class,Gender,Guardian's Name,Contact.No,Address,Email-Address) VALUES(@Name,@Age,@Class,@Gender,@Guardian's Name,@Contact.No,@Address,@Email-Address)";
SqlConnection con = new SqlConnection(cs);
SqlCommand cmd = new SqlCommand(s,con);
cmd.Connection = con;
cmd.Parameters.AddWithValue("@Name", textBox1.Text);
cmd.Parameters.AddWithValue("@Age", textBox2.Text);
cmd.Parameters.AddWithValue("@Class", textBox3.Text);
cmd.Parameters.AddWithValue("@Gender", textBox4.Text);
cmd.Parameters.AddWithValue("@Guardian's Name", textBox5.Text);
cmd.Parameters.AddWithValue("@Contact.No", textBox6.Text);
cmd.Parameters.AddWithValue("@Address", textBox7.Text);
cmd.Parameters.AddWithValue("@Email-Address", textBox8.Text);


con.Open();
cmd.ExecuteNonQuery();
con.Close();

MessageBox.Show("Saved!");

}
My query can't executed successfully please help ??Confused | :confused:
AnswerRe: Execution of query?? Pin
BBatts4-Feb-14 1:40
BBatts4-Feb-14 1:40 
AnswerRe: Execution of query?? Pin
Richard Deeming4-Feb-14 2:54
mveRichard Deeming4-Feb-14 2:54 
GeneralRe: Execution of query?? Pin
Dave Kreskowiak4-Feb-14 4:25
mveDave Kreskowiak4-Feb-14 4:25 
AnswerRe: Execution of query?? Pin
Eddy Vluggen4-Feb-14 2:59
professionalEddy Vluggen4-Feb-14 2:59 
SuggestionRe: Execution of query?? Pin
thatraja4-Feb-14 3:19
professionalthatraja4-Feb-14 3:19 
AnswerRe: Execution of query?? Pin
Dave Kreskowiak4-Feb-14 4:26
mveDave Kreskowiak4-Feb-14 4:26 
AnswerRe: Execution of query?? Pin
Marco Bertschi5-Feb-14 0:16
protectorMarco Bertschi5-Feb-14 0:16 
Questionconvert MySQL UTC_TIMESTAMP() to user local time Pin
Jassim Rahma4-Feb-14 0:13
Jassim Rahma4-Feb-14 0:13 
AnswerRe: convert MySQL UTC_TIMESTAMP() to user local time Pin
Dave Kreskowiak4-Feb-14 4:21
mveDave Kreskowiak4-Feb-14 4:21 
QuestionSense of making my own Timestamp class? Pin
Marco Bertschi3-Feb-14 20:42
protectorMarco Bertschi3-Feb-14 20:42 
AnswerRe: Sense of making my own Timestamp class? Pin
V.3-Feb-14 21:26
professionalV.3-Feb-14 21:26 
GeneralRe: Sense of making my own Timestamp class? Pin
Marco Bertschi3-Feb-14 21:35
protectorMarco Bertschi3-Feb-14 21:35 
GeneralRe: Sense of making my own Timestamp class? Pin
BillWoodruff4-Feb-14 12:43
professionalBillWoodruff4-Feb-14 12:43 
GeneralRe: Sense of making my own Timestamp class? Pin
Dave Kreskowiak4-Feb-14 13:42
mveDave Kreskowiak4-Feb-14 13:42 
AnswerRe: Sense of making my own Timestamp class? Pin
BillWoodruff4-Feb-14 3:56
professionalBillWoodruff4-Feb-14 3:56 
GeneralRe: Sense of making my own Timestamp class? Pin
Marco Bertschi4-Feb-14 4:03
protectorMarco Bertschi4-Feb-14 4:03 
AnswerRe: Sense of making my own Timestamp class? Pin
jschell4-Feb-14 13:20
jschell4-Feb-14 13:20 

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.