投票系统分享(2)
来源:未知 责任编辑:责任编辑 发表时间:2015-03-01 01:47 点击:次
40 obj.BackColor = System.Drawing.ColorTranslator.FromHtml("#EDEDED");
41 obj.ID = "listVoteItem";
42 obj.Width = 180;
43 obj.DataSource = dv;
44 obj.DataTextField = "Item";
45 obj.DataValueField = "ItemID";
46 obj.DataBind();
47 Panel1.Controls.Add(obj);
48 }
49 else
50 {
51 RadioButtonList obj=new RadioButtonList ();
52 obj.BackColor = System.Drawing.ColorTranslator.FromHtml("#EDEDED");
53 obj.ID = "listVoteItem";
54 obj.Width = 180;
55 obj.DataSource = dv;
56 obj.DataTextField = "Item";
57 obj.DataValueField = "ItemID";
58 obj.DataBind();
59 Panel1.Controls.Add(obj);
60 }
61 }
62 protected void Button1_Click(object sender, EventArgs e)
63 {
64 string pass = null;
65 if (Request.Cookies["pass"] == null)
66 {
67 pass = "";
68 }
69 else
70 {
71 pass = Request.Cookies["pass"].Value.ToString();
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>