Click here to Skip to main content
15,919,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

i have image button in datalist ...i have used this datalist in user control...

image button onclick event is not working in user control......

plz suggest whats going wrong...

 

thanx in advanced

Posted

1 solution

You don't have one image button in your project, you have many, all created by the datalist, not by you.

You will need to handle the datalist OnItemCommand method to be able to respond to the click event of all of them. I note that there are two pages of articles that reference OnItemCommand ( a method used by all of MSFT's databound controls, and one well worth understanding) right here on CP 

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900