Solved

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

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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 …
Learn about the eCommerce marketing trends for the year ahead.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

920 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

16 Experts available now in Live!

Get 1:1 Help Now