示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        general = General.Instance;
        log = Logger.Instance;
        gui = GUIVariables.Instance;

        MessageLabel.Text = "Your Feedback is so very important that we dedicated an entire page just for getting your feedback!";

        //Uncomment to Test If File Read/Write is working Fine.
        //string logPath = HttpRuntime.AppDomainAppPath + ConfigurationManager.AppSettings["logPath"];
        //string feedbackPath = HttpRuntime.AppDomainAppPath + ConfigurationManager.AppSettings["feedbackPath"];
        //OutputLabel.Text = "Log: " + logPath + gui.LineBreak + "Feedback: " + feedbackPath;

        if (!IsPostBack)
        {
            HttpContext.Current.Session["CaptchaImageText"] = general.GenerateRandomCode();
        }
    }