|
Subject:
|
passing parameters to user control
|
|
Posted By:
|
jbeynon
|
Post Date:
|
8/30/2006 6:18:00 AM
|
can you help...I'm stuck.
I've built a user control which takes an attribute from the calling page...eg;
<uc2:linksintag ID="Linksintag1" runat="server" tag="shops" />
then in my .ascx file i have;
<h3><asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="tag.aspx?tag=<%=tag %>"><%=tag %></asp:HyperLink></h3>
now, when i mouse over the link that gets displayed i see tag.aspx?tag=<%=tag %> in the address bar....but the next but <%=tag %> displays the value set from the calling page as i'd expect
so my question is how do i get it to use the parameter in the asp:Hyperlink navigateURL attribute?
thanks
john.
|
|