[Mono-list] ASP.NET/Mono - asp:ListView and asp:DataPager not registered

Igor Shmukler igor.shmukler at gmail.com
Thu Jan 22 12:02:04 UTC 2015


Hello,

Do I need to do something special in order for Mono to recognize
asp:DataPager and/or asp:ListView? It is not working for me.

Below is my asp.net
<%@ Page Language="C#" Inherits="XXX.List" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head runat="server">
    <title>List</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ListView ID="ListView1" runat="server">
            <LayoutTemplate>
                <ul>
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                </ul>
            </LayoutTemplate>
            <ItemTemplate>
                <li>
                    <%# Eval("account") %> (<%# Eval("firstName") %>
<%# Eval("lastName") %>)
                </li>
            </ItemTemplate>
            <EmptyDataTemplate>
                No data
            </EmptyDataTemplate>
        </asp:ListView>
        <asp:DataPager ID="lvDataPager1" runat="server"
PagedControlID="ListView1" PageSize="10">
            <Fields>
                <asp:NumericPagerField ButtonType="Link" />
               </Fields>
        </asp:DataPager>
    </form>
</body>
</html>

If ListView is not the way to go, please advise what can I do in order
to display lists with paging controls.

Thank you,

Igor Shmukler


More information about the Mono-list mailing list