-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackageList.ashx
33 lines (23 loc) · 1016 Bytes
/
PackageList.ashx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<%@ WebHandler Language="C#" Class="PackageList" %>
using System;
using System.Web;
using System.IO;
public class PackageList : IHttpHandler {
string sdkRoot = "C:\\Inetpub\\wwwroot\\sdk\\";
public void ProcessRequest (HttpContext context) {
//context.Response.ContentType = "application/x-javascript";
//context.Response.Write(File.ReadAllText(sdkRoot + "json.txt"));
//context.Response.Write("({'one': 'Singular sensation', 'two': 'Beady little eyes', 'three': 'Little birds pitch by my doorstep'})");
context.Response.ContentType = "application/json";
//DateTime dateStamp = DateTime.Parse((string)context.Request.Form["dateStamp"]);
//string stringParam = (string)context.Request.Form["stringParam"];
// Your logic here
string json = "{ \"responseDateTime\": \"hello hello there!\" }";
context.Response.Write(json);
}
public bool IsReusable {
get {
return false;
}
}
}