Getting error -
Procedure or function 'sp_InsertContentForhomepage' expects parameter '@company', which was not supplied.
I'm trying to insert two values ...I'm new in using sp .
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ShoppingConnectionString"].ConnectionString);
con.Open();
string text = FCKeditor.Value;
string company = txtCompany.Text.Trim();
DataSet ds = new DataSet();
SqlCommand cmd = new SqlCommand("sp_InsertContentForhomepage", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue(@text, text);
cmd.Parameters.AddWithValue(@company,company);
cmd.ExecuteNonQuery();
con.Close();
My stored procedure:-
create PROCEDURE sp_InsertContentForhomepage
@company VARCHAR(50),
@text VARCHAR(max)
AS
BEGIN
INSERT INTO tbl_HomepageContent (company, text)
VALUES (@company,@text)
END