Posted on: 4/25/2015 3:51:31 AM | Views : 602

Hello
I am facing a problem with my below code , its working in another parts of the project very well but i dont know what i should do to fix this case, as i am getting message:
" Must declare the scalar variable "@jobIDValue". " and the jobIDValue is querysting called : "JobRef" 

protected void likejobbtn_Click(object sender, ImageClickEventArgs e) { if (Session["UsrNme"] != null) { var user = Session["UsrNme"]; using (var likeCon = new SqlConnection(cs)) { likeCon.Open(); string selectString = "SELECT COUNT(*) FROM FavJob WHERE JobFID = @jobIDValue"; //Create COmmand object SqlCommand myCommand = new SqlCommand(selectString, likeCon); ...

Go to the complete details ...