May 21, 2016 08:41 AM|Junfeng Dai|LINK
Exception Details: System.Data.SqlClient.SqlException: Must declare the scalar variable "@Type".
According to your description and exception, I suggest that your could reconfigure SqlDataSource control to include Type field.
For more information, click
here to refer about Using Parameters with the SqlDataSource Control