Thread: Can not describe an object

  1. #1
    Registered User Aga^^'s Avatar
    Join Date
    Aug 2008
    Posts
    71

    Angry Can not describe an object

    hi everyone,

    i have a problem in ASP.NET with C#. I created a dataset , named DataSet1 is not on App_Code also created a CrystalReport1.

    When i want to create an object from them in general part of the form, i can not do that.

    Code:
    DataSet1 ds=new DataSet1();
    CrystalReport1 cr=new CrystalReport1();
    the name of the DataSet1 and CrystalReport1 not come.

    What can i do?

  2. #2
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    You are calling a class an object. It should be Type object = new Type();. So you should probably be writing DataSet ds = new DataSet();. Or have you derived your own class from DataSet?

  3. #3
    Registered User Aga^^'s Avatar
    Join Date
    Aug 2008
    Posts
    71
    no i did not write like DataSet ds=new DataSet(); i wrote like DataSet1 ds=new DataSet1();

    i did another thing about what i was thinking.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. using this as synchronization object
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 03-22-2008, 07:49 AM
  2. circular doubly linked list help
    By gunnerz in forum C++ Programming
    Replies: 5
    Last Post: 04-28-2007, 08:38 PM
  3. Replies: 60
    Last Post: 12-20-2005, 11:36 PM
  4. Question on l-values.
    By Hulag in forum C++ Programming
    Replies: 6
    Last Post: 10-13-2005, 04:33 PM
  5. A question about constructors...
    By Wolve in forum C++ Programming
    Replies: 9
    Last Post: 05-04-2005, 04:24 PM