- Details
- Written by: Stanko Milosev
- Category: Razor
- Hits: 4269
Use something like:
@DateTime.Now.Localize(new CultureInfo(
- Details
- Written by: Stanko Milosev
- Category: Razor
- Hits: 4111
If your model returns something like:
'message'
Then apply Raw, something like:
@{ string myModel = ""; myModel = Model.XmlRuleObject.Alerts[0].Property.ToString() @Html.Raw(@myModel); } alert("'@myModel'");