Solved

ASP.NET iPad Development -  Help needed with Materpages and Postback

Posted on 2012-04-04
1
644 Views
Last Modified: 2012-04-05
I'm working on an .NET/HTML5/CSS3 application and I'm running into a bit of a snag.

I have navigation buttons on my Masterpage.  When I launch my application from the home screen icon and navigate around for a bit, everything seems to be work fine.  However, if the application is idol for for a minute or so the buttons in the Masterpage stop working.  

Any ideas how to fix this?
0
Comment
Question by:cdemott33
1 Comment
 

Accepted Solution

by:
cdemott33 earned 0 total points
ID: 37811226
I found the answer myself so I'm going to post it here in hopes it helps someone else who is having this problem.

On each asp.net page (not the MasterPage) you need to drop-in this piece of code:

    Protected Sub Page_PreInit(sender As Object, e As System.EventArgs) Handles Me.PreInit
        If Request.UserAgent IsNot Nothing AndAlso Request.UserAgent.IndexOf("AppleWebKit", StringComparison.CurrentCultureIgnoreCase) > -1 Then
            Me.ClientTarget = "uplevel"
        End If
    End Sub

You can read more about this issue here:

http://blog.lavablast.com/post/2011/05/29/Gotcha-iPad-versus-ASPNET.aspx
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now