it ain't work , why ? i am using VS 2012 , .Net framework 4,
look at the code below (Bold) , it underlines CommandType object, and says that'It doesn't exist in the current context'.
protected void Page_Load(object sender, EventArgs e) { String con_string = ConfigurationManager.ConnectionStrings["todolist_connectionstring"].ConnectionString; SqlConnection con = new SqlConnection(con_string); SqlCommand comm = new SqlCommand("member_login",con); comm.CommandType = CommandType.StoredProcedure; }
and yeah , i included system.data.sqlclient