473,854 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Writing a custom section handler for browserCaps

I am looking to write a custom section handler so that I can populate the MobileCapabilit ies object from my our custom data rather than the browserCaps section in machine.config.
From my understanding (limited) it looks like you can implement the IConfigurationS ectionHandler and use the IConfigurationS ectionHandler.C reate to intercept this functionality.
It looks like I need to return a MobileCapabilit ies object from this function. How do I create and return this object? All the properties of MobileCapabilit ies are read only and I can't seem to find any documentation about doing such a thing.

Ideally I would like to take a look at the source code for System.Web.Mobi le.MobileDevice CapabilitiesSec tionHandler. This would help me out no end but this is not present in the source code provided by Rotor (SSCLI).

Any help on overriding mobilecapabilit ies without having to edit the machine.config would be greatly appreciated.


From: Andy Emmerson

Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>uH2MU9C2OEm gUjXIm8okUg==</Id>
Nov 18 '05 #1
1 1382
"Andy Emmerson via .NET 247" <an*******@dotn et247.com> wrote in message
news:el******** ******@TK2MSFTN GP11.phx.gbl...
I am looking to write a custom section handler so that I can populate the

MobileCapabilit ies object from my our custom data rather than the
browserCaps section in machine.config.

Is there any way at all for you to populate MobileCapabilit ies from
something other than the normal browserCaps section?
John Saunders
johnwsaundersii i at hotmail
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Hazzard | last post by:
I am trying to create a custom section and section handler in my config file. The custom section should be something like; <appSecurity> <method name = "Protect the Ice Cream"> <allow group = "admin"/> <allow group = "ice cream eaters"/> <deny group= "weightwatchers"/> <deny user = "hazz"/>
by: Søren Lund | last post by:
Hello, I have implemented a custom config section handler by implementing the IConfigurationSectionHandler interface. I have registered this handler in web.config and everything works fine ... for a while. At random points in time my section handler stops working and throws the exception: Configuration Error Description: An error occurred during the processing of a configuration
by: Hazzard | last post by:
I am trying to create a custom section and section handler in my config file. The custom section should be something like; <appSecurity> <method name = "Protect the Ice Cream"> <allow group = "admin"/> <allow group = "ice cream eaters"/> <deny group= "weightwatchers"/> <deny user = "hazz"/>
by: Andy | last post by:
Hi I currently have a large database of capabilities for mobile devices. I would like the MobileCapabilities object to be populated from this database rather than from <browserCaps> section in machine.config (as this would require a massive update) It looks like it is possible to use a custom section handler by implementing the IConfigurationSectionHandler interface. This interface has a "create" method than passes back the populated
by: Eric | last post by:
Hi, Why there is no <browserCaps> section, which is correct? I understand that Netscape and others are 'DownLevel' browser, but in my case, also the PocketIE on my Ipaq and Opera browser for SmartPhone are reconized wrong (IsMobileDevice = false). From where or how I get the a configuration which works?
by: Tabi | last post by:
Hi, I want to create a custom section in my web.config that can hold my custom values. I created a section in web.config as written below. <configSections> <section name="myCustomSection" type="ComIT.Applications.Common.ConfigurationSections.MyHandler" allowLocation="true" allowDefinition="Everywhere" /> </configSections>
by: Laurent Bugnion | last post by:
Hi, I like to develop custom controls for a number of webpages. These controls are often customizable, so that they can be reused in a number of situations. My question is: What is the best practice for configuring a custom control. As far as I can say, I have the following alternatives: - Defining properties for the control, and setting these in the ASPX
by: =?Utf-8?B?RG91Z2llIEJyb3du?= | last post by:
Hi I've written custom configuration section (inherits from System.Configuration.ConfigurationSection) to simplify the contents of the config file and to make life easier when accessing them in code. The configuration section is contained within the exe (it's a simple test case!) and everything works well debugging within the IDE or if the application is deployed on a drive or share that has been granted full trust. For the share the...
by: Smithers | last post by:
I have a Windows Forms application that implements a plug-in architecture whereby required assemblies are identified and loaded dynamically. Here are the relevant classes: A = application = Windows Forms class B = a singleton hosted within A. B is responsible for dynamically loading classes X, Y, and Z.
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.