HOW TO SHOW A STRING AS A HYPERLINK DYNAMICALLY?

Manoj Bhatt

Total Post:154

Points:1086
Posted by  Manoj Bhatt
 854  View(s)
Ratings:
Rate this:

How to show a string as a hyperlink dynamically?

  1. Sumit Kesarwani

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!