0

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=-

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by salientknight
0

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

-=Sal=-

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.