Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a textbox inside a form tag for implementing site search, My problem after entering text in textbox and On clicking go button in android devices page redirection occures and search result is displayed, but in IOS devices postback not occuring My code is shown below

XML
<form id="search-wrap" class="ezsearch-summary" method="get" action="/ezSearch" target="_blank">

                        <input id="Text1" class="search-input" name="q" type="text" value="" autocomplete="off"/>
                    </form>
Posted

1 solution

Not sure if this is your exact problem but there's a bug somewhere between MS and Apple – when they updated Safari on iOS8 they bumped the version to be Webkit 600, but the code in .NET that’s looking for the browser capabilities screws up and only looks at the first two numbers, so it’s seeing “Webkit 60” instead. The Ajax controls therefore don’t think the browser supports the callbacks and falls back to not using it.

Fix is relatively simple – we need to override the browser capabilities in the web.config – add this to System.Web

XML
<browsercaps>
      <filter>
            <case match="AppleWebKit">
                  EcmaScriptVersion = 1.5
                  supportsCallback = true
            </case>
      </filter>
</browsercaps>


This isn't the only solution, but was the most expedient for us when we encountered a similar problem earlier this year.

References: http://www.brillianceweb.com/blog/article/69/aspnet-20-misidentifies-safari-71-on-ios-and-os-x#sthash.0FuAyobK.dpbs
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900