Solved

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

Posted on 2012-04-04
1
649 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

770 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