By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,294 Members | 2,588 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,294 IT Pros & Developers. It's quick & easy.

adding a variable inside a hyperlink template (inside a datalist)

P: n/a
Hi ,

I have the following where I need to append a string variable inside a
template, inside a datalist. The variable 'categoryList' is the culprit.
No matter where this variable is declared, the compiler says it is
What am I missing here? I am a newbie to ASP.NET trying to rebuild my ASP
<asp:datalist id="list" Height="8px" Width="250px" runat="server">



<asp:HyperLink id="HyperLink1" runat="server"
CssClass="CategoryUnselected" NavigateUrl='<%# "../index.aspx?catID=" &
categoryList & "|" & DataBinder.Eval(Container.DataItem, "CategoryID")%>'
Text='<%# DataBinder.Eval(Container.DataItem, "CategoryName") %>'>

</asp:HyperLink><br />



Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.