I want to bind GridView with sqlDataSource like following
But raises error "Procedure or function GET_TRACKING_IN FO has too many arguments specified"
When I execute this stored procedure in SQL query analyzer it works fine, there is no other parameter is used.
Please tell me what is wrong with it. Very urgent.
Code:
sqlDataSource1.SelectCommand = "GET_TRACKING_INFO";
sqlDataSource1.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;
sqlDataSource1.SelectParameters.Add("Group_code",TypeCode.String, "1");
sqlDataSource1.SelectParameters[0].Direction =ParameterDirection.Input;
GridView1.DataSource = sqlDataSource1;
GridView1.DataBind();
When I execute this stored procedure in SQL query analyzer it works fine, there is no other parameter is used.
Please tell me what is wrong with it. Very urgent.
Comment