My code is as follow
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(mycon);
**strong text**
string str = "insert into CustomerHistoryAD(customerId,checkNumber,bank,city,date,amount) values('" + tb_customerID.Text + "','" + tb_CheckNumber.Text + "','" + tb_bank.Text + "','" + tb_city.Text + "','" + tb_date.Text + "','" + tb_Amount.Text + "')";
sqlq(str);
lbl0.Text = " DataSaved Successfully ";
tb_Notification.Text = "Record of Customer ID '"+tb_customerID.Text+"' is Submitted";
}
protected void Button2_Click(object sender, EventArgs e)
{
string query = "insert into notification(message) values('" + tb_Notification.Text+ "')";
String mycon = "Data Source=DESKTOP-79IQ2D8; Initial Catalog=ForexMedia; Integrated Security=true";
SqlConnection con = new SqlConnection(mycon);
con.Open();
SqlCommand cmd = new SqlCommand();
cmd.CommandText = query;
cmd.Connection = con;
cmd.ExecuteNonQuery();
Label3.Text = "Notification Sent";
tb_Notification.Text = "";
}