开发者

"A field or property with the name'EncrypedStatusId' was not found on the selected data source."

Hi , I have added a new value EncrypedStatusId in DataNavigateUrlFields And i am getting error as "A field or property with the name'EncrypedStatusId' was not found on the selected data source.开发者_Go百科" but my list do has the property EncrypedStatusId which contain value How to solve this? ASPX:

<asp:HyperLinkField HeaderText="Status" DataTextField="AppStatus" DataNavigateUrlFields="NavigateUrl,Id,EncrypedStatusId"
            SortExpression="AppStatus" DataNavigateUrlFormatString="{0}?Id={1}"></asp:HyperLinkField>
<asp:TemplateField>
     <ItemTemplate>
          <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("NavigateUrl","{0}").Replace(":", Server.UrlEncode(":")) %>'
                    DataTextField="AppStatus"></asp:HyperLink>
     </ItemTemplate>
</asp:TemplateField>

CODE BEHIND :

List<DTO> listDto;
IApplication engine;

engine = new Engine();
listDto = engine.ReadHistory(Session["UserID"].ToString());

this.dvHistory.DataSource = listDto;
this.dvHistory.DataBind();


do you have it in the gridview property datakeynames=[EncrypedStatusId,...]


Check that the column EncrypedStatusId column exists in your datasource.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜