How to bind the gridview using stored procedure and in stored procedure it is select the table using where condition. so error is occuring like this
SqlCommand cmd = new SqlCommand("LateReason", con);
cmd.CommandType = CommandType.StoredProcedure;
//cmd.Parameters.AddWithValue("@Desc", ObjBO.Desc);
SqlDataAdapter adp = new SqlDataAdapter(cmd);
adp.Fill(ds);
cmd.Dispose();
ALTER PROCEDURE [dbo].[LateReason]
(
@Desc varchar(50)
)
AS
SELECT * FROM LateReason WHERE [Desc] = @Desc