Answered by:
ASP.NET 2.0 controls not working

Question
-
User2126297882 posted
I have an ASP.NET (not mobile) web page that I have created for our clients to access on their mobile devices. For some reason, the gridview and calendar controls don't work on some handhelds, even though they are all running WinCE 5.0. The gridview and calendars are rendered on the page properly, but it appears that none of the events associated with the controls will fire. I don't recieve any kind of error, the controls simply don't respond to any kind of user interaction. The controls work fine on my bosses PocketPC, but don't on several other devices we've tried. Any help would be appreciated. Thanks.Thursday, January 11, 2007 4:51 PM
Answers
-
User-1583677305 posted
This behaviour is caused by fact, that ASP.NET recognized device on which is response posted. ASP.NET uses control adapters which can render control according to specific device. This behaviour can be modified in web.config specifiing other browser capabilities or changing the definition of browser capabilities in ASP.NET. See the files in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers directory.- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Saturday, January 13, 2007 5:18 AM
All replies
-
User-1583677305 posted
This behaviour is caused by fact, that ASP.NET recognized device on which is response posted. ASP.NET uses control adapters which can render control according to specific device. This behaviour can be modified in web.config specifiing other browser capabilities or changing the definition of browser capabilities in ASP.NET. See the files in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers directory.- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Saturday, January 13, 2007 5:18 AM -
User2126297882 posted
I checked the browser properties on the devices that are not working, and their browser is being detected as Mozilla even though it's Internet Explorer. Also, it shows that Javascript, VB Script, etc. are disabled. Does anyone know why this is, or more importantly how to fix it?
Thursday, January 18, 2007 10:20 AM -
User2126297882 posted
Thanks Marian, I didn't understand what you were trying to say at first, but you were right. I thought it was a just a matter of turning on javascript on the client browser, but it's not quite that simple. Turns out the user agent string wasn't recognized, thus the reduced functionality. However, instead of modifying the browserCaps or the .browser files, I just set the clientTarget to "uplevel", so that the page will render with full functionality on all browsers.
Monday, January 22, 2007 4:22 PM