ClassLibraryWeiBao/WebSurvey/WebSurvey.cs

(开头部分) 15KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*
*
*	WebSurvey by Stephen Stchur
*
*	Copyright (c) Microsoft Corporation.  All rights reserved.
*
*
*/

namespace sstchur.web.survey
{
    using sstchur.web.survey.designer;
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.IO;
    using System.Web;
    using System.Web.Mail;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Xml;    

    [Designer(typeof(WebSurveyDesigner)), ToolboxData("<{0}:WebSurvey runat = \"server\"></{0}:WebSurvey>")]
    public class WebSurvey : CompositeControl
    {
        private bool m_bAllowRepeats = true;
        private ArrayList m_panels = new ArrayList();
        private WebQuestionCollection m_questions = new WebQuestionCollection();
        private string m_strAnswersFile = "answers.xml";
        private string m_strCookieName = "WebSurvey:RepeatCookie";
        private string m_strEmailTo = "";
        private string m_strRedirectUrl = "";
        private string m_strSmtpServer = "";
        private string m_strSurveyFile = "survey.xml";
        
        private int id = 0;

        private void AddButtonToPanel(Panel _panel, ButtonType _buttonType, string _imgUrl)
        {
            ImageButton child = new ImageButton();
            child.ImageUrl = _imgUrl;
            switch (_buttonType)
            {
                case ButtonType.Back:										
                    child.Command += new CommandEventHandler(this.btnBack_Click);
                    child.CommandName = _panel.ID;
                    break;

                case ButtonType.Next:										
                    child.Command += new CommandEventHandler(this.btnNext_Click);                    
                    child.CommandName = _panel.ID;
                    break;

                case ButtonType.Submit:										
                    child.Click += new ImageClickEventHandler(this.btnSubmit_Click);
                    break;
            }            
            _panel.Controls.Add(child);
            _panel.Controls.Add(new LiteralControl("&nbsp;&nbsp;&nbsp;"));
        }
后面还有 370 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。