• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

AJAX toolkit text extender

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    AJAX toolkit text extender

    got this code:

    [Designer(typeof (TextChangedDesigner))]
    [ClientScriptResource("TextChanged.TextChangedBehav ior", "TextChanged.TextChangedBehavior.js")]
    [TargetControlType(typeof (Control))]
    public class TextChangedExtender : ExtenderControlBase
    {
    [ExtenderControlProperty]
    [DefaultValue(500)]
    [ClientPropertyName("timeout")]
    [RequiredProperty]
    public int Timeout
    {
    get { return GetPropertyValue<int>("Timeout", 500); }
    set { SetPropertyValue<int>("Timeout", value); }
    }

    [ExtenderControlEvent(true)]
    [DefaultValue("")]
    [ClientPropertyName("textChanged")]
    public string OnTextChanged
    {
    get { return GetPropertyValue<string>("OnTextChanged", String.Empty); }
    set { SetPropertyValue<string>("OnTextChanged", value); }
    }
    }

    =======================================

    but the [RequiredProperty] always creates an error - extender property not supplied - even though i do pass it a value [even tho' the constructor has a default] at run-time. anyone any ideas?
    ta

    #2
    is this a clientside error?

    http://www.manning-sandbox.com/threa...essageID=63056
    whats the lowest you can do this for?

    Comment


      #3
      it was a server error. not sure why it was happening. removing the attribute [ that post was me ] obviously removes the error but i was wondering if anyone else had come across it or similar...

      Comment


        #4
        just tried it with my extenders and I cant get it to error either way, can you paste the whole class if you can and I'll take a look or pm it
        whats the lowest you can do this for?

        Comment

        Working...
        X