Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I am using datalist and one image control is under the datalist. But if i try to access the image id in .cs file then it is not accessed.

Please help me

Thanks in advance
Posted
Comments
thatraja 15-Jun-11 3:28am    
without code we can't give you any solution.

1 solution

OK - this relates to your other question. I guess you don't know a lot about ASP.NET, have you considered buying a book and reading it ?

Your datalist has an itemdatabound event. In that event you can find the controls in a row. As you defined the image with an id, but you'll have an image per row, you can't access the image in your general code, as it's only a template for many images that will be created.
 
Share this answer
 
Comments
rahul dev123 15-Jun-11 4:00am    
Yes that's why i am using this code in source page. If you do that please provide me the correct code.

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