System.Data.DataRowView'不包含名为'ProductID'的属性。 [英] System.Data.DataRowView' does not contain a property with the name 'ProductID'.

查看:85
本文介绍了System.Data.DataRowView'不包含名为'ProductID'的属性。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用图像作为超链接。



每当调用图像存储过程的clik时,在下面的ProductID传递时,bt错误就会超过错误。



和商店程序完美运作....

I have used image as hyperlink.

Whenever clik on the image store procedure is called ,and below ProductID is passed bt at that time above error ouccured..

and store procedure work perfectly....

<asp:HyperLink ID="hl" runat="server"
NavigateUrl='<% # "~/Product/ProductDetails.aspx?ProductID=" + Eval("ProductID") %>'>
           <asp:Image ID="imgProduct" runat="server" ImageUrl='<%# Eval("ImagePath") %>' /></asp:HyperLink>

推荐答案

错误的哪一部分令人困惑?



System.Data.DataRowView''不包含名为''ProductID''的属性。

它明确指定为网格指定的数据源没有ProductID列。一个简单的调试将告诉你从DB中取回的内容以及是否有任何名为ProductID的字段。
Which part of the error is confusing?

System.Data.DataRowView'' does not contain a property with the name ''ProductID''.
It clearly specifies that the datasource specified for the grid has no ProductID column. A simple DEBUGGING will tell you what is fetched back from DB and if there is any field named ProductID.


这篇关于System.Data.DataRowView'不包含名为'ProductID'的属性。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆