@if (ViewBag.validateResult == "true") { string message = ViewBag.messageInfo; // string form DB(Table) @Html.LabelForModel(message, new { @class = " alert alert-success fade in" }) }
You can add the link's HTML to your string and, display it using the Html.Raw method. Something like:
@{ string msg1 = "My Text <a href=\"http://www.google.com\">My link</a>."; @Html.Raw(msg1) }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)