jeudi 30 juin 2016

How to create a string from c# that can show in View as a rendered anchor tag

I am trying to create a string in such a way that it should rendered as anchor tag in cshtml page.But instead of anchor tag, it is rendering as string and it shows the string as it is. Can somebody correct me please.

Here is what I am doing

string info= "You are on this page. <a target=_blank >Click to view</a>"

Aucun commentaire:

Enregistrer un commentaire