Can anyone give solution?
give stored procedure for shopping cart details?here i don't know how to do?
protected void btncart_Click(object sender, EventArgs e)
{
if (con.State == ConnectionState.Closed)
{
con.Open();
}
SqlCommand cmd = new SqlCommand("addcart1", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@mastreid",OleDbType.VarChar,50);
cmd.Parameters.AddWithValue("@usersession");
cmd.Parameters.AddWithValue("@pro_id");
cmd.Parameters.AddWithValue("@pro_name");
cmd.Parameters.AddWithValue("@price");
cmd.Parameters.AddWithValue("@quantity");
cmd.Parameters.AddWithValue("@type");
cmd.Parameters.AddWithValue("@pro_img");
cmd.ExecuteNonQuery();
}