Results 1 to 3 of 3

Thread: [RESOLVED] [2005] BLL and DAL Problem

  1. #1

    Thread Starter
    Hyperactive Member kayos's Avatar
    Join Date
    Apr 2004
    Location
    Largo, Florida
    Posts
    306

    Resolved [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


    If this post helps, please RATE MY POST!

    Using Visual Studio 2005 SE

  2. #2

    Thread Starter
    Hyperactive Member kayos's Avatar
    Join Date
    Apr 2004
    Location
    Largo, Florida
    Posts
    306

    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.


    If this post helps, please RATE MY POST!

    Using Visual Studio 2005 SE

  3. #3

    Thread Starter
    Hyperactive Member kayos's Avatar
    Join Date
    Apr 2004
    Location
    Largo, Florida
    Posts
    306

    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.


    If this post helps, please RATE MY POST!

    Using Visual Studio 2005 SE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width