Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blank first page when paging a list control (Mobile page!)

Status
Not open for further replies.

ifx

Technical User
Feb 26, 2002
57
GB
Hi,

I'm developing a WAP site and using .NETs wonderful(ish) Mobile controls to do it. It appears to work very well for most situations and renders wml or html etc depending on what the browser accepts. However I've come to a problem I can't seem to solve:
We have a page which lists a selection of products, however there are around 100 so it displays the first 20, then a next link, shows the next 20 and so on it typical paging style. This works fine, except the first page always comes back blank with just the Next link. Clicking that returns the first 20 records, and it pages perfectly after that. So where does this extra empty page come from?

The data is read from a database, into a data reader then into an Array list which holds name value pairs (product name and product ID). The array list is bound to the list control.

Now the odd bit is that if you view this site using Internet Explorer for example, .NET automatically renders the page in HTML, and there is no blank page problem - it works perfectly! Using Opera or a mobile device makes it insert this annoying extra page! Is this a bug, and if so is there a work around because it's driving me crazy!

Thanks a lot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top