Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

c# razor for loop javascript

<script>
	@for(int i = 0; i < 5; i++)
	{
	   <text>
			// Use <text> node to call js inside razor
			var that = @i
		</text>
	}
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #razor #loop #javascript
ADD COMMENT
Topic
Name
7+1 =