Hello,
- Understanding:
- In the code for the Image Gallery Demo using RadListView control, a RadBinaryImage control has been used.
- In the aspx page, a "onclick="<%#CreateWindowScript((TiledImages) Container.DataItem) %>"/>" event has been used.
- Also, if we run the program in debug mode and place a break point on the "CreateWindowScript" method defined in the code behind, we will see that this method is getting called at "Page_Load" itself.
- What i understand is its trying to register a Java Script for the click event when ever it occurs.
- Requirement:
- The images to be shown are stored in the data base.
- My requirement is that once the page is loaded and the user clicks on any of the image, I want to call a server side (code behind) method.
- Based on the selected Image and its ID, I want to load few other controls with data from the data base.
- As far as I understand, the onclick event used in the demo will not serve the purpose.
- What other option can I look out for for the above mentioned requirement?
- Note: In our project, we plan to use this image gallery in a form of a Live Tile in a ASP.NET application. And hence the usage of ListView and RadBinaryImage control.
A quick input towards the solution will be very helpful.
Regards,
Abhijit