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

Igor Shmukler igor.shmukler at gmail.com
Thu Jan 22 12:33:41 UTC 2015


Hi,

Sorry about not submitting all information in one shot.

I checked my references, and System.Web using assembly browser. There
are no ListView or DataPager controls in System.Web. I am using
System.Web version=4.0.0.0,Culture=neutral. It either came with Mac or
XamarinStudio. If necessary, I can probably lookup PublicKeyToken.

Do I have a bad assembly? Are ListView and DataPager supported? Do I
need to reference more assemblies, perhaps or something?

Thank you,

Igor Shmukler


On Thu, Jan 22, 2015 at 2:02 PM, Igor Shmukler <igor.shmukler at gmail.com> wrote:
> 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