hyperlink in code behind [modified]
-
Hi I have an array of URLs I wanna display them in the form of hyperlinks using StringBuilder ie StringBuilderobject.Append("url") i wanna convert above "url" in the form of hyperlink to be displayed in browser How do i do Should i use some script? please help Thanks Jiny -- modified at 5:36 Tuesday 27th June, 2006
-
Hi I have an array of URLs I wanna display them in the form of hyperlinks using StringBuilder ie StringBuilderobject.Append("url") i wanna convert above "url" in the form of hyperlink to be displayed in browser How do i do Should i use some script? please help Thanks Jiny -- modified at 5:36 Tuesday 27th June, 2006
Hi, Do you have the URLs in a comma seperated string? If yes, you can split it into a string array and then generate array of hyperlinks as much as string array lentgh of the URLs. I hope this will help you, If not, please explain your situation Thanks, Sushant Duggal.
-
Hi, Do you have the URLs in a comma seperated string? If yes, you can split it into a string array and then generate array of hyperlinks as much as string array lentgh of the URLs. I hope this will help you, If not, please explain your situation Thanks, Sushant Duggal.
My code looks something like this foreach (ResultElement reselem in objres.resultElements) { //here sb is object of string builder sb.Append("<a href="\ + reselem.URL + "\">" + reselem.title + "</a><br />"); } TextBox1.text = sb.ToString(); Rather than displying it as hyperlink, it displaysas "a href="\...... kindly help, how can display it in the form of hyperlink Thanks Jiny
-
My code looks something like this foreach (ResultElement reselem in objres.resultElements) { //here sb is object of string builder sb.Append("<a href="\ + reselem.URL + "\">" + reselem.title + "</a><br />"); } TextBox1.text = sb.ToString(); Rather than displying it as hyperlink, it displaysas "a href="\...... kindly help, how can display it in the form of hyperlink Thanks Jiny
Place a repeater control on the page that contains a hyperlink control. bind your collection - objRes.resultElements to the repeater. In the repeater, bind the url property of the hyperlink control to the URL property and the text to the title property. This should then display a list of all the urls. If you are trying to display a clickable url in a textbox, then i don't think that this is possible.
-
Place a repeater control on the page that contains a hyperlink control. bind your collection - objRes.resultElements to the repeater. In the repeater, bind the url property of the hyperlink control to the URL property and the text to the title property. This should then display a list of all the urls. If you are trying to display a clickable url in a textbox, then i don't think that this is possible.