"Error Creating Control" - "Ambiguous match found"

Discussion in 'ASP .Net Building Controls' started by Craig Jewiss via .NET 247, Apr 26, 2004.

  1. Hi

    I've created a custom control with two textboxes and fourvalidators (one regular expression, one range, two required). I've overridden the CssClass property to apply a CssClass to thetwo textboxes only. If I apply the CssClass value in the codebehind, it works fine, although it appears to be applying theCssClass to the validators as well. If I enter it directly inthe properties window, it causes the control to switch to "ErrorCreating Control" and shows "Ambiguous match found" as theerror. I can get round this problem by not overriding theCssClass property and creating a new property (e.g. MyCssClass),but I'm not the only user of this control, so I'd like it toconform with other standard controls by using the CssClassproperty. I've also got the same propblem with overriding theEnabled property.

    I suspect I'm approaching this requirement from the wrong angle,so any help is much appreciated.

    --------------------------------
    From: Craig Jewiss

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

    <Id>kVQ9b4K4TUC+/b9xUEzCJw==</Id>
    Craig Jewiss via .NET 247, Apr 26, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Denon
    Replies:
    2
    Views:
    4,356
    Yuke Liew
    Jan 2, 2004
  2. Ben

    Ambiguous match found.

    Ben, Apr 27, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    7,870
    bond007
    Mar 23, 2010
  3. =?Utf-8?B?QWxleGFuZHJl?=

    Error: Ambiguous match found.

    =?Utf-8?B?QWxleGFuZHJl?=, Apr 23, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    16,490
    OnPreInit
    Oct 1, 2009
  4. Francois
    Replies:
    3
    Views:
    643
    Hans Kesting
    May 22, 2007
  5. aparna

    Ambiguous match found

    aparna, Mar 25, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    406
    aparna
    Mar 26, 2008
Loading...

Share This Page