我尝试此查询仅查看通过其帐户上传的人的文档意味着用户仅查看自己的文档查询
ALTER procedure [dbo].[dddddd]
@userid int
as
SELECT DISTINCT DocumentInfo.DocID as DocumentID ,
dbo.DocumentInfo.DocName as DocumentName,
dbo.DocumentInfo.Uploadfile as FileUploaded,
dbo.DocType.DocType as Document,
dbo.Department.DepType as Department ,
dbo.ApproveType.ApproveType AS ApproveID
FROM dbo.DocumentInfo
inner JOIN dbo.DocType ON dbo.DocumentInfo.DocTypeID=dbo.DocType.DocTypeID
inner JOIN dbo.Department ON dbo.DocumentInfo.DepID=dbo.Department.DepID
LEFT JOIN dbo.ApproveType ON
dbo.ApproveType.approveid=dbo.DocumentInfo.ApproveID
LEFT
OUTER JOIN
Approval a ON a.DocID = a.DocID
JOIN
ApproveType at ON at.ApproveID = ISNULL(a.Approveid, 3) where UserID=@userid
但它告诉我错误
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'DocID'."
在这一行
<td><%#DataBinder.Eval(Container.DataItem,"DocID") %></td>
错误在哪里