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_Init (object sender, EventArgs e)
{
//
Codegen:this the call are required by the asp+ Windows Form Designer.
//
InitializeComponent ();
Init ();
}
<summary>
Required to Designer support-do not modify
The contents is with the Code Editor.
</summary>
private void InitializeComponent ()
{
This. Load + = new System.EventHandler (this. Page_Load);
}
To see the effect of this survey, please go to Http://210.12.102.95/football. How do you think this is a good programming idea? What the? Why not just do it directly in the ASPX file? Yes, if the single do such a survey does directly to save more, but do you know, as long as there are compiled this class DLL, no matter how you change the page, change the data structure, you can in 15 minutes you need to make the public opinion survey? This is the biggest difference between the two programming methods. Hopefully you can learn some programming ideas from this example.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.