投票系统分享(8)
来源:未知 责任编辑:责任编辑 发表时间:2015-03-01 01:47 点击:次
21 DataSet ds = new DataSet();
22 sda.Fill(ds);
23 Repeater1.DataSource = ds.Tables[0].DefaultView;
24 Repeater1.DataBind();
25 lblInfo.Text = "共有" + ds.Tables[0].Rows[0]["SumNumber"].ToString();
26 lblTitle.Text = ds.Tables[0].Rows[0]["Title"].ToString();
27 }
28 }
HTML代码:
1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="LookVote.aspx.cs" Inherits="LookVote" %>
2
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5 <html xmlns="http://www.w3.org/1999/xhtml">
6 <head id="Head1" runat="server">
7 <title>无标题页</title>
8 </head>
9 <body style=" text-align:center; background-color:#f9cd34">
10 <form id="form1" runat="server" style=" text-align:center;">
11 <div style="width: 500px; text-align:center; background-color:#FFF2BB;">
12 <br />
13 <table style="color:#333333;text-align:left; border:0; width:90%; background-color:#b18a02; font-size:12px; font-family:宋体;" cellpadding="2" cellspacing="1">
14 <tr style=" height:25px; background-color:#FFFFFF">
15 <td>
16 <br />
17 <asp:Label ID="lblInfo" runat="server"></asp:Label>
18 </td>
19 </tr>
20 <tr style=" height:25px; background-color:#f9dc34">
21 <td>主题:<asp:Label ID="lblTitle" runat="server"></asp:Label></td>
22 </tr>
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>