private void button4_Click(object sender, EventArgs e)
{
string constr = "Data Source=NOBEL-PC\\SQLEXPRESS;Initial Catalog=db_ecommerce;user id=rupak;password=rupak";
SqlConnection sqlcon = new SqlConnection(constr);
string query = "deleteproduct";
SqlCommand scmd = new SqlCommand(query, sqlcon);
scmd.CommandType = CommandType.StoredProcedure;
scmd.Parameters.AddWithValue("@id", myid);
try
{
sqlcon.Open();
scmd.ExecuteNonQuery();
MessageBox.Show("Data Deleted");
}
catch (SqlException se)
{
MessageBox.Show(se.Message);
}
sqlcon.Close();
}
Webocreation
- Visa Intelligent Commerce: Find and Buy with AI agents - 5/1/2025 - Rupak Nepali
- Top YouTube Channels for AI Learning in 2025 - 4/29/2025 - Rupak Nepali
- Digital Marketing for Online Stores: Data-Driven Strategies for 2025 - 4/27/2025 - Rupak Nepali
- From PHP to Python: Building a Web Scraper Using Windsurf IDE prompt - 4/26/2025 - Rupak Nepali
- Core Processes in Data-Driven Software Development - 4/25/2025 - Anil Patel
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment