This is a totally unofficial release of WURFL API for .NET
Reference the binary files from your application. For ASP.NET web application, include this in your web.config file (system.web section):
<browsercaps> <result type="Marg.Wurfl.WurflMobileCapabilities, Marg.Wurfl"> </result> </browsercaps>
and of course, copy the Marg.Wurfl.dll file to your bin folder. You can also configure the logging subsystem. The API uses log4net logging library, so please check there for configuration. Mind you, there is a lot of debugging going on. A sample is included in the sample web application.
This binary release was compiled with .NET Framework 2.0, but the could should be compatible with .NET Framework 1.1.
You can use ASP.NET server controls (from the System.Web.UI.MobileControls namespace) and you can query the device capabilities yourself. There are two options to that:
- Use Request.Browser object and query it (you can query for WURFL capabilities as well)
- Use WurflDeviceIndex object to query it. (cast Request.Browser object to WurflMobileCapabilities object)