I have my code in a .CS file. I've writen a ton of methods, which work fine and had lots of seccess including code in this file. I have also been able to declair sql objects at the class scope with no problem. My problem is that everytime I try to declare a class varible I get an error that I am missing a } in the auto gen code.

public class CodeClass : Page {

	public SqlDataReader rdr = null; // this works
	public string tableName; // this causes and error
	public int gameLen; // this causes and error

Any ideas would be very appreciated.

-=Salient Knight=-

Sorry for wasting you time. The missing } was in the aspx page, not the CS page.

-=Sal=-

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.