Asked by:
Objectlist Pagination Problem

Question
-
User1436359208 posted
Hi everyone,
I am developing a website for mobile devices and i found the problem in objectlist pagination.
here is my code:
<mobile:ObjectList Runat="server" ID="objList" BackColor="#99CCFF" Alignment="Left" LabelStyle-Alignment="Left" LabelStyle-BackColor="#3333CC" LabelStyle-Wrapping="NotSet" BackCommandText="Go Back" Visible="True" BreakAfter="false" CommandStyle-Alignment="Center" AutoGenerateFields="False" LabelField="StoreName" OnPreRender="objList_PreRender" TableFields="StoreName;ContactPerson;Email" ItemsPerPage="10" StyleReference="image"> <Field DataField="StoreId" Title="" Visible="False" /> <Field DataField="StoreName" Title="Store" /> <DeviceSpecific Runat="server"> <Choice> <HeaderTemplate> <table> <ucHeader:Header ID="headerLogin" runat="server" /> </HeaderTemplate> <itemtemplate> <tr><td> <mobile:Label ID="lblHidden" Runat="server" Visible="false"> <%#Eval("StoreId") %> </mobile:Label> <mobile:Link ID="lnkUrl" Runat="server" Visible="true"> <%#Eval("StoreName") %> </mobile:Link></td></tr> </itemtemplate> <footertemplate> <mobile:Command ID="btnPrevious" Runat="server" Format="Link" BreakAfter="False" OnItemCommand="btnPrevious_Click">Previous</mobile:Command> <mobile:Command ID="btnNext" Runat="server" Format="Link" BreakAfter="True" OnItemCommand="btnNext_Click">Next</mobile:Command> </table> </footertemplate> </Choice> </DeviceSpecific> </mobile:ObjectList>
problem: i want to show the footer control(containing the footer link menus) on each page in the objectlist. but by doing this i get the pager after footer control.
i want to get the pager before footer control.
So anyone knows regarding this of ever faces the problem like this..?
can i access the header or footer control in code behind like in gridview if yes the how?
Thank in advance
Saturday, February 5, 2011 3:56 AM
All replies
-
User1943143334 posted
Hi,
General ASP.NET website works absolutely fine with all Mobile browsers[HTML Compatible]. So you can develop a general ASP.NET website, with out using any Mobile controls, the same will render perfectly in all Mobile browsers.
Actually, ASP.NET Mobile controls are designed for WAP browsers, so they have some limitations.
I think asp:GridView will solve your problem
Check the following links,
http://geekswithblogs.net/ranganh/archive/2008/04/01/mobile-web-forms-in-visual-studio-2008.aspx
http://www.asp.net/learn/whitepapers/add-mobile-pages-to-your-aspnet-web-forms-mvc-application
http://roopeshreddy.wordpress.com/2010/07/25/mobile-development-in-asp-net/
Hope it helps u...
Saturday, February 5, 2011 11:01 AM -
User1436359208 posted
Thanks Roopesh for your suggestion
but i have already developed the application using mobile controls..
i got this problem only with this and now its hard to develop the application using asp.net. i mean it'll take more time now.
is there any alternate suggestion?
Monday, February 7, 2011 12:17 AM -
User1436359208 posted
Also i have already gone through the posts you have directed, but it didnt help me anymore..
thanks for your reply
Monday, February 7, 2011 12:18 AM