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.








Go to topic 49049

Return to index page 190
Return to index page 189
Return to index page 188
Return to index page 187
Return to index page 186
Return to index page 185
Return to index page 184
Return to index page 183
Return to index page 182
Return to index page 181