Today I just came across an issue in my current project. Its just a .NET web application compatible for BlackBerry Device. I have to use a Calendar Control which allows the user to select a day and schedule an appointment. The default ASP.NET Calendar Control gave a JavaScript error.


Google always help me to find a solution for the issues… While googling I came across a post in MSDN web site which solved my issue.
http://msdn.microsoft.com/en-us/library/sk9az15a.aspx
Solution:
Just added the lines in my web config file.
<browserCaps>
<filter>
<case match="BlackBerry8800">EcmaScriptVersion = 1.5</case>
<case match="BlackBerry8310">EcmaScriptVersion = 1.5</case>
<case match="BlackBerry8300">EcmaScriptVersion = 1.5</case>
<case match="BlackBerry8320">EcmaScriptVersion = 1.5</case>
<case match="BlackBerry8900">EcmaScriptVersion = 1.5</case>
</filter>
</browserCaps>
Using the browserCaps element in the Web.config file to define browsers is deprecated in the .NET Framework 2.0, but it is still supported. The data in this element is merged with the information from the browser definition files (.browser) that is located in the machine-level %SystemRoot%\Microsoft.NET\Framework\version\CONFIG\Browsers folder and any existing application-level App_Browser folders.
ECMAScript:
ECMAScript is a scripting language, standardized by Ecma International in the ECMA-262 specification and ISO/IEC 16262. The language is widely used on the web, especially in the form of its two best-known dialects, JavaScript and JScript.
<case match="BlackBerry8800">EcmaScriptVersion = 1.5</case>
In case element just give the model of the BlackBerry device and specify the ECMA Script Version Supported by the device.
It tells the IIS and the .NET framework, how to render the ASP.NET controls in the device browser.