troubleshooting Question

Create Anchors From List

Avatar of allanau20
allanau20 asked on
3 Comments1 Solution429 ViewsLast Modified:
Hi experts!

Say I have a list that contains this:

and to make it common delimited I do this:

var tags = String.Join(", ", myPost.tags);

and the results for this:
Tags: @tags
is Tags: bike, bicycle

however, how would you make bike and bicycle or whatever in myPost.tags list into anchors and passed as into the querystring?

so, each anchor would look like this:
*xxxx is from the list

<a href="@Href("~/mypage/search?r=xxxx")" class="lnk">xxxx</a>

Any ideas?
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros