Click here to Skip to main content
15,907,231 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read information from serial port in Mathlab format Pin
Victor Gonzalez 20247-Apr-24 22:42
Victor Gonzalez 20247-Apr-24 22:42 
GeneralRe: Read information from serial port in Mathlab format Pin
Luc Pattyn7-Apr-24 22:45
sitebuilderLuc Pattyn7-Apr-24 22:45 
QuestionDebugging the Sandbox Pin
Richard Andrew x645-Apr-24 3:43
professionalRichard Andrew x645-Apr-24 3:43 
QuestionIParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
Tracy Dryden24-Mar-24 12:29
Tracy Dryden24-Mar-24 12:29 
AnswerRe: IParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
Mycroft Holmes24-Mar-24 15:07
professionalMycroft Holmes24-Mar-24 15:07 
GeneralRe: IParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
Tracy Dryden24-Mar-24 16:19
Tracy Dryden24-Mar-24 16:19 
AnswerRe: IParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
Ralf Meier24-Mar-24 22:35
mveRalf Meier24-Mar-24 22:35 
GeneralRe: IParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
Tracy Dryden25-Mar-24 7:51
Tracy Dryden25-Mar-24 7:51 
AnswerRe: IParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
jschell26-Mar-24 12:00
jschell26-Mar-24 12:00 
Rant(Current) AI Rant. Pin
Gerry Schmitz17-Mar-24 12:29
mveGerry Schmitz17-Mar-24 12:29 
GeneralRe: (Current) AI Rant. Pin
Eddy Vluggen26-Mar-24 5:34
professionalEddy Vluggen26-Mar-24 5:34 
GeneralRe: (Current) AI Rant. Pin
lmoelleb1-Apr-24 21:44
lmoelleb1-Apr-24 21:44 
GeneralRe: (Current) AI Rant. Pin
lmoelleb1-Apr-24 21:49
lmoelleb1-Apr-24 21:49 
QuestionMessageBox Appearing Behind Window Pin
Richard Andrew x6417-Mar-24 1:27
professionalRichard Andrew x6417-Mar-24 1:27 
AnswerRe: MessageBox Appearing Behind Window Pin
OriginalGriff17-Mar-24 4:33
mveOriginalGriff17-Mar-24 4:33 
AnswerRe: MessageBox Appearing Behind Window Pin
Gerry Schmitz17-Mar-24 6:37
mveGerry Schmitz17-Mar-24 6:37 
GeneralRe: MessageBox Appearing Behind Window Pin
Richard Andrew x6417-Mar-24 8:04
professionalRichard Andrew x6417-Mar-24 8:04 
GeneralRe: MessageBox Appearing Behind Window Pin
Gerry Schmitz17-Mar-24 10:09
mveGerry Schmitz17-Mar-24 10:09 
AnswerRe: MessageBox Appearing Behind Window Pin
#realJSOP19-Mar-24 2:12
professional#realJSOP19-Mar-24 2:12 
AnswerRe: MessageBox Appearing Behind Window Pin
M Imran Ansari6-Apr-24 10:57
mveM Imran Ansari6-Apr-24 10:57 
GeneralRe: MessageBox Appearing Behind Window Pin
Richard Andrew x647-Apr-24 6:09
professionalRichard Andrew x647-Apr-24 6:09 
QuestionUpdating sql table where textbox = ID Pin
cencom0116-Mar-24 6:51
cencom0116-Mar-24 6:51 
I am attempting to update a sql table based off the tables ID (which is self generated by sql when the row was first entered into the table. The below code is what I am trying to use but it will not update the row.

protected void ButtonUpdate_Click(object sender, EventArgs e)
    {
        SqlConnection con = new SqlConnection("Data Source=ucpdapps2;Initial Catalog=Offline_CAD;Persist Security Info=True;User ID=sa;Password=Propaganda9800!");
        con.Open();
        SqlCommand cmd = new SqlCommand("Update [Law_Responses] SET (Calltaker=@Calltaker,Date=@Date,City=@City,County=@County,Address=@Address) where TextBox171.text=@ID", con);
        cmd.Parameters.AddWithValue("@Calltaker", DropDownList1.SelectedValue);
        cmd.Parameters.AddWithValue("@Date", TextBox1.Text);
        cmd.Parameters.AddWithValue("@City", DropDownList9.SelectedValue);
        cmd.Parameters.AddWithValue("@County", DropDownList2.SelectedValue);
        cmd.Parameters.AddWithValue("@Address", TextBox3.Text);
        con.Close();
        cmd.ExecuteNonQuery();
        ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "alert('Incident Was Updated');", true);
    }

AnswerRe: Updating sql table where textbox = ID Pin
Dave Kreskowiak16-Mar-24 7:05
mveDave Kreskowiak16-Mar-24 7:05 
AnswerRe: Updating sql table where textbox = ID Pin
Richard Deeming17-Mar-24 23:37
mveRichard Deeming17-Mar-24 23:37 
AnswerRe: Updating sql table where textbox = ID Pin
Wei Xue2-Apr-24 20:58
Wei Xue2-Apr-24 20:58 

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.