The question is I've 1 user control which displays userDetails(Popup), And I want to create custom server control which is inherited from HyperLink and there'd be some custom properties something like this

<cc1:UserDetails="UserDetails" runat="server" />
<cc1:CustomHyperLink ID="CustomHyperLink1" runat="server" userID="<%# some bound id %>" popupControlID="UserDetails" />

description:


CustomHyperLink is server control inherited from hyperlink. this control will be used multiple in page takes userID & UserDetail controlID as properties.

UserDetails is popup which I don't want multiple instance in page.


Thing I can't figure out is in CustomHyperLink class how can I find UserDetails control from the page and how shall I work with it? Tried to google but no luck maybe because of bad keys words :(.

Related posts

Recent Viewed