TrialUser
asked on
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
http://www.obout.com/imagezoom/