string description = " and next is the href link... " ;

And then * shortly described * I'm formatting the string something like:

 return string.Format(description + 
"<a href='#' style='text-decoration:none; color: #000000' onclick = 'alert('hello')'>" 
       + Click me + "</a>");

The html structure is displayed correctly, but still the alert isn't shown when the link is clicked.

What if I want to call from the onclick event some method written in code behind?

Related posts

Recent Viewed