It says Must declare the scalar variable "@username". error on:
Line 30: SqlCommand passComm = new SqlCommand(checkPasswordQuery, conn);
Line 31: com.Parameters.AddWithValue("@username", TextBoxLoginUN.Text);
Line 32: string password = passComm.ExecuteScalar().ToString().Replace(" ", "");
Line 33: if (password == TextBoxLoginPass.Text)
Line 34: {
but i have inserted it in 31. It does exist why it says i didint put it there? the project is saved before debug and i am using visual studio 2010 pro.
Here is my HOLE coding:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
public partial ...
Go to the complete details ...