How to have a control stored in a property for a custom web control?

Discussion in 'ASP .Net Web Controls' started by Henrik Grotle, Sep 9, 2003.

  1. Hi,
    I have created a web control that takes three textboxes as properties. I
    tried first to declare the properties with the Control datatype and that was
    ok except that it would not carry the design time settings over to run time.
    Then I declared them with string datatype (taking the control's id) and that
    is working fine but it's not very userfriendly. I see that the Validator
    controls does much of what I want, there you have the ControlToValidate
    property that takes a string, it also lists all the possible variables (all
    text boxes on the page) in the property editor. My question is: how can I
    copy this behaviour?

    Thanks in advance,
    Henrik Grotle
     
    Henrik Grotle, Sep 9, 2003
    #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. Rob Joosen

    Keep custom property-value in custom rendered control

    Rob Joosen, May 12, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    147
    Rob Joosen
    May 12, 2004
  2. Zarko Gajic

    Custom Attributes (AttributeTargets.Property) and Property Type

    Zarko Gajic, Apr 7, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    437
    Zarko Gajic
    Apr 7, 2005
  3. Jeremy Chapman

    Custom control with complex property type (System.Web.UI.Control[])

    Jeremy Chapman, Feb 15, 2006, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    165
    Jeremy Chapman
    Feb 15, 2006
  4. anon
    Replies:
    0
    Views:
    212
  5. Curt_C [MVP]

    Custom WebControl, custom property list

    Curt_C [MVP], Sep 1, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    181
    Curt_C [MVP]
    Sep 1, 2005
Loading...

Share This Page