• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 482
  • Last Modified:

showing ajax moda popup on a row click in datalist

I have a datalist that contains a user control as a Itemtemplate. Inside the user control I have a div that contains some images. When the user cicks on one of the images I would like the ajax modal popup to be shown.

I created an ajax modal popup and set the TargetControlID as the datalist on the page that contans the datalist. IT works, but the problem is I want the modal popup to show only when the image inside the usercontrol is clicked not when any other field is clicked. please suggest how I can achieve this. Thanks
0
TrialUser
Asked:
TrialUser
  • 2
1 Solution
 
CodeCruiserCommented:
I think you would need to add the extender in the user control and then select the actual image as the control.
0
 
CodeCruiserCommented:
Or use this free control

http://www.obout.com/imagezoom/
0
 
TrialUserAuthor Commented:
If I add in the user control there were several probles :

1) many of the modal popups where placed on the page on load.
2) only on click of the first row in hte datalist the modal popup popped up. For other rows it is not.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now