6 Star 0 Fork 0

hi / webCollection

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ResponseTest.aspx.cs 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
hi 提交于 2019-12-01 21:20 . init
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
public partial class ResponseTest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string dataFromClient = Server.UrlDecode(Request.Form.ToString());
Response.Write("successed;");
if (dataFromClient.Length == 0)
{
return;
}
if(Request.Cookies["username"] == null && Request.UserHostName.ToString() != "127.0.0.1")
return;
string domain = URL.getDomain(Request.Url.ToString());
string domainSuf = URL.getDomainSuf(domain);
string directory = "";
if (Request.QueryString != null && Request.QueryString["flag"] != null)
{
directory = Request.QueryString["flag"];
}
if (Request.UserHostName.ToString() == "127.0.0.1")
{
Request.Cookies.Add(new HttpCookie("username", "www"));
}
handleDataFromClient.handle(dataFromClient, Request.Cookies["username"].Value,directory);//need to be modified.
}
}
1
https://gitee.com/yanglihao2006/webCollection.git
git@gitee.com:yanglihao2006/webCollection.git
yanglihao2006
webCollection
webCollection
master

搜索帮助