-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.aspx.cs
45 lines (33 loc) · 1.03 KB
/
Index.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Index : System.Web.UI.Page
{
public string username;
public List<Good> goods = null;
public List<Good> announedGoods = null;
protected void Page_Load(object sender, EventArgs e)
{
goods = GoodService.GetProcessingGood();
announedGoods = GoodService.GetAnnouncedGood();
}
public string getUserName()
{
username =(string) Session["username"];
return username;
}
protected void logout(object sender, EventArgs e)
{
Session.Abandon();
Response.Write("<script>alert('注销登录!');location.href='Index.aspx';</script>");
}
protected void addshopcar(object sender, EventArgs e)
{
Response.Write("<script>alert('添加购物车成功!');</script>");
//Good good = new Good();
//string goodId = (((LinkButton)sender).CommandArgument.ToString());
}
}