ASP.NET Calendar Control in BlackBerry Browser

by Prasanna Vignesh 3. June 2009 08:26


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.

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Tags:

BlackBerry

Comments

7/14/2009 2:55:32 PM #

sridhar

Thanks for the post.. really helpful.

sridhar India |

12/10/2009 11:45:34 PM #

Omega Seamaster

Great tutorial thanks

Omega Seamaster United States |

12/21/2009 2:39:30 PM #

Aloe Berry Nectar

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post

Aloe Berry Nectar United States |

12/23/2009 1:07:38 AM #

get rid of acne

Hey this is a really nice theme? Is it a free one or did you get it custom made? This is a BlogEngine blog right?

get rid of acne United States |

Comments are closed

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen, Modified by Prasanna Vignesh.



About Me

Prasanna Vignesh Prasanna Vignesh
Mobile application developer at ZSL. More...



RecentPosts

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar