public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string username = context.Request["Accounts"]; Message umsg = this.af.IsAccountsExist(username); if (!umsg.Success) { string sqlquery = string.Format("select MoneyPre from [QPTreasureDB].[dbo].ChangeMoneyPre where UserID=(select UserID from [QPAccountsDB].[dbo].AccountsInfo where Accounts='" + username + "')"); string count = tf.GetMoneyCountByAccount(sqlquery).ToString(); decimal money = decimal.Parse(count); context.Response.Write(money.ToString()); } else { context.Response.Write("0"); } }