Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 30th, 2006, 06:18 AM
Registered User
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing parameters to user control

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?



Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing a DataSource to a user control hpox ASP.NET 2.0 Professional 1 January 8th, 2007 11:04 AM
C# passing parameters to custom control class booksnore2 General .NET 1 October 5th, 2004 11:44 AM
Passing user defined parameters to vb dll Smita VB How-To 0 March 29th, 2004 04:49 AM
Passing a Value to a User Control DC Ross ASP.NET 1.0 and 1.1 Basics 2 February 17th, 2004 06:38 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.