Need to know when a usercontrol embedded element attribute changes

Discussion in 'ASP .Net' started by Cal Who, Jun 4, 2010.

  1. Cal Who

    Cal Who Guest

    I created a user control that contains an iFrame element.

    The user control has a property "name"

    The effect of assigning a value to user control "name" property is that the
    "name" attribute of the iFrame is assigned that value.

    On a page that contains that user control and assigns="LinksFrame3" to the
    user control's "name" I also have elements like:
    <asp:TreeNode NavigateUrl="http://en.wikipedia.org/wiki/Church"
    Target="LinksFrame3" Text="Wikipedi Item on Church"></asp:TreeNode>

    This works. It somehow finds the iFrame that now has its name attribute set
    to "LinksFrame3".

    Maybe it changes the iFrame src to point to the NavigateUrl value.

    Do you know? Is that what happens?



    Anyway, it does not appear to use the user control at that time. Seems to go
    directly to the iFrame. Is this what you'd expect? Why?

    Bottom line: I like to do something when a new target gets applied but don't
    know how to get control.

    Since I have control of the Treenode code and the user control code I'm
    hoping there is a way of activating some event in the usercontrol when the
    target get changed. Maybe use a new property in the user control instead of
    using Target?

    But I don't know how. Can you solve this?



    Thanks
    Cal Who, Jun 4, 2010
    #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. anonymous
    Replies:
    1
    Views:
    5,925
  2. =?Utf-8?B?TWFyaw==?=
    Replies:
    4
    Views:
    618
    =?Utf-8?B?TWFyaw==?=
    Dec 14, 2006
  3. perspolis
    Replies:
    1
    Views:
    2,536
    Mark Rae
    Jan 23, 2007
  4. Rosemary
    Replies:
    5
    Views:
    330
    Rosemary
    Mar 13, 2008
  5. Andries

    I know, I know, I don't know

    Andries, Apr 23, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    222
    Gregory Toomey
    Apr 23, 2004
Loading...

Share This Page