C
Cal Who
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
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