62,046
社区成员
发帖
与我相关
我的任务
分享
protected void btnLogin_Click(object sender, EventArgs e)
{
HttpClient client = new HttpClient();
string json = client.GetAsync("http://172.31.168.164:82/adlogin2.aspx").ToString();
UserInfo newuser = JsonConvert.DeserializeObject<UserInfo>(json);
Session.Add("username", newuser.username);
Session.Add("employeeid", newuser.employeeid);
userinfo.Visible = true;
//loginlink.Visible = false;
//Session.Add("username", "28021278");
}
function getLogin(){
window.frames['login'].location.href = "http://网站B/adlogin2.aspx";
alert(window.frames['login'].document.contentDocument.innerHTML);
}