---
title: "How to show a string as a hyperlink dynamically?"  
description: "How to show a string as a hyperlink dynamically?"  
author: "Manoj Bhatt"  
published: 2014-08-21  
updated: 2014-08-21  
canonical: https://www.mindstick.com/forum/2072/how-to-show-a-string-as-a-hyperlink-dynamically  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# How to show a string as a hyperlink dynamically?

How to show a [string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp) as a hyperlink dynamically?

## Replies

### Reply by Sumit Kesarwani

Hi Manoj, try this:

```
string links = string.Empty;string strInput = "p-1,p-2,p-3,p-4";string []arrInput = strInput.Split(',');foreach(string str in arrInput)   links +=
@"<a href=""www.somesite.com/somepage.aspx?qs1=" + str +
" >"+str+"</a><br />";
```


---

Original Source: https://www.mindstick.com/forum/2072/how-to-show-a-string-as-a-hyperlink-dynamically

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
