Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class GetFromUser : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string requestData = ""; // The data sent in the request
- Request.InputStream.Position = 0;
- Response.ContentType = "text/plain";
- using (var reader = new StreamReader(Request.InputStream))
- {
- requestData = reader.ReadToEnd(); // Reads the data from what was sent with the request
- if (requestData == "tasks please")
- {
- Response.Write(Session["tasks"].ToString());
- Session["tasks"] = "";
- Response.End();
- }
- else if (requestData.Contains("procceses:"))
- {
- Session["prcss"] = requestData;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement