We help IT Professionals succeed at work.

ASP.Net 3.5 .browser configuration file

zattz
zattz used Ask the Experts™
on
Hi

I have an ASP.NET 3.5 web application on IIS that I can't get to work correctly on a blackberry. The gridview control buttons such as select don't work. Debugging tells me _dopostback is not defined. This is caused because I do not have a .browser configuration file that enables javascript for the blackberry.

On the blackberry if I manually force the browser to identify as Firefox then the site works correctly.

I have followed the instructions at http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800878/800733/How_To_-_Configure_.NET_2.0_for_BlackBerry_Browser_support?nodeid=1365369&vernum=0 to create a .browser file and run aspnet_regbrowsers.exe, but I still have the same problem.

Does something else have to be done if I am targetting net 3.5?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The only thing u usually have to do is place the file (default.browser) in the App_browsers subfolder off your application.
So you should have a default.browser that looks a bit like this


<?xml version='1.0' encoding='utf-8'?>
<browsers>
  <browser refID="Default">
    <controlAdapters>
    </controlAdapters>
  </browser>
  <browser id="W3C_Validator" parentID="default">
    <identification>
      <userAgent match="^W3C_Validator" />
    </identification>
    <capabilities>
      <capability name="browser" value="W3C Validator" />
      <capability name="ecmaScriptVersion" value="1.2" />
      <capability name="javascript" value="true" />
      <capability name="supportsCss" value="true" />
      <capability name="tables" value="true" />
      <capability name="tagWriter" value="System.Web.UI.HtmlTextWriter" />
      <capability name="w3cdomversion" value="1.0" />
    </capabilities>
  </browser>
</browsers>

Open in new window

Author

Commented:
Thanks!