日期:2013-10-03  浏览次数:20444 次

好了,现在万事俱备,只欠东风了,让我们看看现在做一个舆论调查多么简单:

file : vote.aspx


<%@ Page language="c#" Codebehind="vote.cs" AutoEventWireup="false" Inherits="Football.vote" %>

<html>
  <head>
  <title>532.com.cn --- 舆论调查 ---</title>
  <link rel="stylesheet" href="style/style.css" type="text/css">
    
  </head>
  <body>
    
    <form method="post" runat="server">
    <table width=400 height=300 align=center>
      <tr>
         <td class=cn valign=top align=center><b>调查题目:
            <asp:label id="lblSurveyTitle" runat=Server class=cn></asp:label>
         </td>
      </tr>
      <tr>
         <td alin=center>
            <asp:image id="imgSurvey" runat=Server></asp:image>         
         </td>
      </tr>
      <tr>
         <td align=center>
          <input type=button onclick="window.close();" value="关闭此窗口">
          </td>
      </tr>
    </table>
     </form>
    
  </body>
</html>

file: vote.cs
namespace Football
{
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Web;
    using System.Web.SessionState;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;



    /// <summary>
    ///    Summary description for vote.
    /// </summary>
    public class vote : System.Web.UI.Page
    {
        protected System.Web.UI.WebControls.Image imgSurvey;
        protected System.Web.UI.WebControls.Label lblSurveyTitle;

        private string m_strSurveyID ;
        private int m_intVoteID ;
        public vote()
        {
            Page.Init += new System.EventHandler(Page_Init);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
      &nb