Hi
I have below code in Aspx page but i want to display image thru Repeater RowDataBound.
 %>)
Thanks
Hi
I have below code in Aspx page but i want to display image thru Repeater RowDataBound.
 %>)
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ramco RamcoPosted Jun 17, 2023, 4:48 AM
Hi Vishal
I have to get image through ItemDataBound
Thanks
Vishal JoshiPosted Jun 16, 2023, 12:19 PM
Hello Ramco,
Please try the below code to bind the image in a repeater control.
Thanks
Ramco RamcoPosted Jun 16, 2023, 12:18 PM
Hi
I have belwo code but it is giving error - Unable to cast object of type LMS.DAL_View_BookDeliveryDetail to type System.Data.DataRowView
Thanks
Deepak RawatPosted Jun 16, 2023, 10:29 AM
Add the Repeater control to your ASPX page and set its DataSource property to the desired data source.
In the code-behind file (e.g., .aspx.cs), handle the RowDataBound event of the Repeater control. This event is triggered for each item in the Repeater.
Inside the RowDataBound event handler, access the current item's data and find the Image control within the Repeater's ItemTemplate.
Set the Image control's source (src) attribute to the appropriate value using the data from the current item.
Rajkiran SwainPosted Jun 16, 2023, 9:22 AM