Hi all..

can u help me to fix this :

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'Group' does not contain a definition for 'NamaGroup' and no extension method 'NamaGroup' accepting a first argument of type 'Group' could be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 63: WorkshopDataAccess db = new WorkshopDataAccess();
Line 64: Group grp = new Group();
Line 65: grp.NamaGroup = TextBox_nama.Text; Line 66:
Line 67: db.WorkshopDataContext.Groups.InsertOnSubmit(grp);

i dont know why, i have checked all my code.. but i can't access my field..

Recommended Answers

All 3 Replies

What accessibility have you set for NamaGroup? Is it visible to this class?

Member Avatar for stbuchok

Shouldn't NamaGroup be NameGroup?

I was assuming not because the line

grp.NamaGroup = TextBox_nama.Text;

But you could be right.

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.