HTML fragments in view page - can be called over and over - eg in a loop

1 comments
	<div>		
		global<br/>
		<%			 
			int sc = 0;				

			var globalFragment = new Action(() => {
				%>subtotal [<%=sc %>]<br/><%
			});
			
			for (sc = 2; sc < 10; sc++) {
				globalFragment.Invoke();
			}	
			%>
			
			<br>
			scoped<br><%

			var typedFragment = new Action<int, string>((x, y) => {
				%>html[<%=y%>,<%=x %>]<br /><%
			});

			for (sc = 99; sc < 103; sc++) {
				typedFragment.Invoke(sc + 5, "324234");
			}
		%>
	</div>
 

Comments

remove Newtonsoft.Json
Posted by Jeremy Nicholls | jeremy@beweb.co.nz

references to Newtonsoft.Json may need to be removed. I noticed that if you include Google.GData.Client.dll et al. This puts Newtonsoft.Json back in



Leave a Comment