Home > DeveloperSection > Forums > How to show a string as a hyperlink dynamically?
Manoj Bhatt
Manoj Bhatt

Total Post:153

Points:1079
Posted on    August-21-2014 1:01 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 663  View(s)
Rate this:

How to show a string as a hyperlink dynamically?



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-21-2014 1:16 AM

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 />";


Don't want to miss updates? Please click the below button!

Follow MindStick