[RESOLVED] [2005] BLL and DAL Problem
Ok, i have created a BLL and DAL for a small photo album site i'm trying to create.
my ObjectDataSource uses the DataObjectTypeName of "Album", a class that i created and use a list of to bind to my GridView.
here is my problem, i have created select,insert,update, and delete methods and all work except for my delete method.
it worked when i first created it but now it just craps. i pass the Album.AlbumID to my DAL for the DELETE statement. what i have found is that the Album.AlbumID i am passing to my DAL contains zero for some reason and i can not figure out why!
thanks ahead of time!
-kayos
Re: [2005] BLL and DAL Problem
nobody? i'm really at a loss here. i have been researching for quite a while and still have not turned up anything useful.
Re: [2005] BLL and DAL Problem
pssssshhhhh! i found it.. i had set the "DataKeyNames" property of the GridView before but since then i have had to re-insert the GridView due to a change in Album object structure. so i reset DataKeyNames = AlbumID and viola! she works again.