Hi there guys I am trying to make a link to go to the List of Tags page by clicking link tags. but my problem is how can i insert the loop item @tItem in that link Url it doesn't accepted any parameters with @ signs.

Any Idea how to work this out? Thanks in advance. God Bless!

Tags list:

foreach (var tItem in tagList.Split(','))
     var tags = @tItem;
    <a href="#" name="tags" onclick="document.location.href = '/tags.aspx?tags=' + encodeURIComponent(tags)" rel=" tag">
        <span id="blogTags">@tItem</span>

Related posts

Recent Viewed