To solve this you will need to tell .net the capabilities of the browser. For .net 2.0 & above you need to create a new browers file with the capabilities and upload it to your server.
- In VS2008 Solution Explorer right click your application and add the “ASP.Net Folder” App_Browsers if you don’t already have it.
- Add a New “Browser File” item to this special folder and call it safari.browser (if fixing the problem for Chrome)
- Delete all the default stuff VS put in this file and replace it with the following:
<browsers>
<browser refID=”safari1plus”>
<controlAdapters>
<adapter controlType=”System.Web.UI.WebControls.Menu” adapterType=”” />
</controlAdapters>
</browser>
</browsers> - Save your file & test locally to see if all is well.
- Now for the annoying bit. Upload the new app_browser folder & file to your production server, if you have used the “copy web site” menu option to upload or sharepoint or frontpage, these will create a new folder under app_browsers called vti_cnf
- Manually delete the vti_cnf folder under app_browser on your production server. If you don’t you’ll get “Parse error: Data at the root level is invalid. Line 1, position 1.” in your new safari.browser file.
- Remember to manually delete this vti_cnf folder everytime you make a change to the app_browser folder or contained files.
So there you go, how to solve the control rendering problems with Google’s Chrome.
For original post you can visit