Hi again,
Are you sure this is the right code?
I still see a *lot* of irrelevant stuff, making it hard for me to see what this is all about and what is needed and what not. Why do I need to wade through lots of AJAX assemblies in the bin folder, AJAX control toolkit references in the code, zillions of nested divs, uncommented code, unused connection strings and more while not of them are related to the actual problem? The more clean up you do, the easier it's for me to see what's going on.
But most importantly: there is no code for the ListView's ItemDataBound so how do you think this will work in the first place? You call BindList which then forces the Rating control to check the datasource, but you're never even assigning one? Then in BindData you randomly pick the first item and try to set an ItemId? None of this makes any sense to me.
Finally, if you upload new code, please explain what the general process of your logic is. I see some properties where the getters and setters access a database (???) and some other LINQ query hocus pocus that doesn't make sense to an outsider, so I am a bit a loss here to see how you want this to work in the first place. What are you trying to do and display? What IDs are you trying to assign to the Ratiing control?
Cheers,
Imar
|