please can any one clarify my eror i am getting this error when i wrote this command
select UserID,QuestionID,Question,SelectedOption,CorrectOption from StudentExamFullResult where UserID=@UserID
Must declare the scalar variable "@UserID".
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Must declare the scalar variable "@UserID".
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.