| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <%@ WebHandler Language="C#" Class="index" %>
- using System;
- using System.Web;
- using Newtonsoft.Json.Linq;
- public class index : IHttpHandler
- {
- public void ProcessRequest(HttpContext context)
- {
- context.Response.ContentType = "text/plain";
- Random random = new Random();
- string jsonData = string.Format(@"
- [
- [{0},{1},{2},{3},{4}],
- [{5},{6},{7},{8},{9}]
- ]
- ",
- random.Next(1, 20),
- random.Next(1, 20),
- random.Next(1, 20),
- random.Next(1, 20),
- random.Next(1, 20),
- random.Next(1, 20),
- random.Next(1, 20),
- random.Next(1, 20),
- random.Next(1, 20),
- random.Next(1, 20)
- );
- context.Response.Write(jsonData);
- }
- public bool IsReusable
- {
- get
- {
- return false;
- }
- }
- }
|