This question is locked. New answers and comments are not allowed.
Im finding razor a little confusing:
Can anyone enlighten me why this works
but this doesnt
Can anyone enlighten me why this works
@{ Html.Telerik().TabStrip() .Name("TabStrip") .Effects(fx => fx.Expand() .Opacity() .OpenDuration(200) .CloseDuration(300)) .Items(tabstrip => { tabstrip.Add() .Text("Upcoming Races") .ImageUrl("~/Content/Images/grn_runner_sml.png") .Content(@<text> <ul> @foreach (var raceVM in Model.Races) { <li><a @Html.ActionLink(raceVM.FullRaceDescription, "Index", new { id = raceVM.Race.RACEID }) </li> } </ul> </text>);but this doesnt
@{ Html.Telerik().TabStrip() .Name("TabStrip") .Effects(fx => fx.Expand() .Opacity() .OpenDuration(200) .CloseDuration(300)) .Items(tabstrip => { tabstrip.Add() .Text("Upcoming Races") .ImageUrl("~/Content/Images/grn_runner_sml.png") .Content(@<text> <div id="twocols"> <div id="maincol"> <ul> @foreach (var raceVM in Model.Races) { <li><a @Html.ActionLink(raceVM.FullRaceDescription, "Index", new { id = raceVM.Race.RACEID }) </li> } </ul></div> <div id="rightcol"> @Html.Partial("_RaceDetailView", Model.SelectedRace) </div> </div> </text>);