Server Error in '/' Application.
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PROFILEPHOTOS/ImageName'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PROFILEPHOTOS/ImageName'.
Source Error:
Line 1803:
Line 1804:
Line 1805: <img src='<%#Eval("PROFILEPHOTOS/ImageName")%>' class=" img-circle animated fadeInDown"
Line 1806: style="border: 1px solid #E0E0E0; width:55px; height:55px;" />
Line 1807: </a>
According to your description, I am not clear what data control you use? I use a gridview to show the image in the folder with ImageField, please check the following sample code:
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
227 Points
1070 Posts
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PROFILEPHOTOS/I...
Nov 25, 2017 06:43 PM|micah2012|LINK
Am trying to display image in folder PROFILEPHOTOS which i stored the ImageName in table and is showing this error
Participant
1627 Points
457 Posts
Re: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PROFILEPHOT...
Nov 27, 2017 06:49 AM|Rohit Rao|LINK
If you are getting image name at server side (.cs file), Then use asp.net server control for image and bind the image there at server side.
Then you can bind the image as :
imgCtrlID.ImageUrl = "YourFolder\ImageName.Extension";
Contributor
6730 Points
2715 Posts
Re: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PROFILEPHOT...
Nov 27, 2017 08:21 AM|Eric Du|LINK
Hi micah2012,
According to your description, I am not clear what data control you use? I use a gridview to show the image in the folder with ImageField, please check the following sample code:
Sample Code:
Result:
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.