?
Solved

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

Posted on 2012-04-04
1
Medium Priority
?
653 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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).
Suggested Courses

777 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