public void Fraction() { optionTest op = new optionTest(); DataTable dt = op.FractionManage(); string jsonStr = JsonConvert.SerializeObject(dt); Context.Response.Write(jsonStr); Context.Response.End(); }
public void Test() { optionTest op = new optionTest(); string Name = Context.Request.QueryString["userName"]; string pwd = Context.Request.QueryString["pwd"]; Context.Response.Write(op.getTest(Name, pwd)); Context.Response.End(); }
public void Answer() { optionTest op = new optionTest(); //StreamReader reader = new StreamReader(Context.Request.InputStream); //string str = reader.ReadToEnd(); string answer = Context.Request.QueryString["answer"].ToString(); string name = Context.Request.QueryString["Name"].ToString(); string user = Context.Request.QueryString["user"].ToString(); string pass = Context.Request.QueryString["passw"].ToString(); string[] optioName = answer.Split(','); string[] ranswer = name.Split(','); int Test = op.Answer(optioName, ranswer, user, pass); Context.Response.Write(Test); Context.Response.End(); }