Hi, I am using
C# to program a web application. Is it possible to create user-defined objects just like JAVA programming? For example, I have a class called HouseDB.cs, and a code-behind class called House.aspx.cs. I would like the HouseDB.cs acting as a simple database manager, ie,an entity class accessing database. Is it ok to put following code in House.aspx.cs?
House housesearch = new House()
then use housesearch.blahblah
to invoke House's methods.
I tried, but failed. Have no idea what has gone wrong...