I have an asp.net page that has a ListView populated from an SQL database table. In the code-behind (ItemDatabound) I want to replace some text before displaying in a Label control. For example, I might have something like the text below in the database
column.
blah blah [www.myweb.org]
blah blah blah [www.yourweb.org]
I want to replace the [ with "<a href=" and then replace the wording inside with wording between the [ and ]. So the result would be "<a href='www.myweb.org'></a>" for the first one and similar for the second (or any others) using the text between each
following set of [ and ]. Any help is appreciated.
Go to the complete details ...