Specifying a control as a tag property

Discussion in 'ASP .Net Web Controls' started by Helen, Jul 1, 2004.

  1. Helen

    Helen Guest

    I have created two web controls and I need them to be able to
    reference each other so they can work together. At the moment, I'm
    hooking them up manually in the code behind file, but I'd really like
    to be able to do it in the tag using tag properties in the same way
    that you can specify a control that you want a validator component to
    validate.

    Can anyone point me in the direction of information on doing this?
    I've searched google, the MSDN, usenet and my big book on creating ASP
    components but haven't been able to find all the pieces I need as of
    yet.

    Thanks :)

    Helen
    Helen, Jul 1, 2004
    #1
    1. Advertising

  2. Helen

    Helen Guest

    (Helen) wrote in message news:<>...
    >
    > I have created two web controls and I need them to be able to
    > reference each other so they can work together. At the moment, I'm
    > hooking them up manually in the code behind file, but I'd really like
    > to be able to do it in the tag using tag properties in the same way
    > that you can specify a control that you want a validator component to
    > validate.


    What I ended up doing was passing the ID of the control in as a string
    and then using the web control's parent object to get a reference to
    the control. Seems to work quite well.

    Helen
    Helen, Jul 6, 2004
    #2
    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. Marina
    Replies:
    3
    Views:
    394
    Marina
    Jan 28, 2004
  2. shruds
    Replies:
    1
    Views:
    791
    John C. Bollinger
    Jan 27, 2006
  3. Nathan Sokalski

    Specifying property defaults

    Nathan Sokalski, Mar 22, 2009, in forum: ASP .Net
    Replies:
    9
    Views:
    396
    Armin Zingler
    Mar 23, 2009
  4. Jeff 'Jones' Putz

    Specifying string array as an attribute in HTML tag

    Jeff 'Jones' Putz, Jul 28, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    142
    Jeff 'Jones' Putz
    Jul 28, 2003
  5. Nathan Sokalski

    Specifying property defaults

    Nathan Sokalski, Mar 22, 2009, in forum: ASP .Net Web Controls
    Replies:
    9
    Views:
    778
    Armin Zingler
    Mar 23, 2009
Loading...

Share This Page