Oct 13, 2010 05:31 PM|sycomputing|LINK
I created an empty web site project and I'd like to use my own DAL to interact with a SQL Database.
My class file looks like the following:
public class Calendar
public SqlDataReader GetEventsByDate (string date)
I don't know why but the IDE won't let me construct methods this way. There's a squiggly line under 'SqlDataReader' and the error is 'Expected class, delegate, enum, struct, ...etc.'
I've done this before on Web Site projects and it works fine. Normally intellisense allows me to choose 'SqlDataReader' but in this project (which I've never used before, BTW) I don't have the option.
Any help is appreciated.