Dharmesh Sharma

Dharmesh Sharma

  • NA
  • 905
  • 927.2k

How to get passing ID name in MVC

Jun 27 2012 4:18 AM

hello ,

i am new in MVC i am trying to get how to do this

i have one index view and this show 10 items list when i click one go to details page and URL like Album/Details/1

on Details page i have all info album but i am not get the album name coz my database table like this

Album table

id     albumname

1      ABC

2     CC

3     XYZ

album details

id      albumid     desc

1      1                 aaaaaaaaaa

2      2                 CCCCCCCCCCCC

 My problem is all details come from controller class but how i also get in same controller method album name

i thing my query wrong so please give me some query idea

thanks