How to show a string as a hyperlink dynamically?

Total Post:154

Points:1086
 1120  View(s)
Ratings:
Rate this:

How to show a string as a hyperlink dynamically?

  1. Post:378

    Points:2694
    Re: How to show a string as a hyperlink dynamically?

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

      Modified On Apr-04-2018 06:13:14 AM

Answer