Backup/index.aspx.cs

(开头部分) 6KB

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

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Windows.Forms;

using LeaveMessageMVC.MVC.BusinessLogicLayer.ParameterInformation;
using LeaveMessageMVC.MVC.DataBaseControlLayer;
using LeaveMessageMVC.MVC.BusinessLogicLayer;
using LeaveMessageMVC.MVC.BusinessLogicLayer.SomeFunctions;

public partial class LeaveMessagePage : System.Web.UI.Page
{
    LeaveMessageMVC.MVC.BusinessLogicLayer.ParameterInformation.LeaveMessagePara LMP = new LeaveMessagePara();

    protected void Page_Load(object sender, EventArgs e)
    {
        //禁止浏览器的缓存,防止用户发布信息后点“后退”返回到原来未发布的状态(虽然实际数据已写入DB)
        Response.Cache.SetNoStore();
        Response.Cache.SetNoServerCaching();

        Response.Write("<script type=\"text/javascript\">");
        Response.Write("function CtrlEnter(button){");
        Response.Write("if(event.ctrlKey && event.keyCode==13)document.all[button].click();}");
        Response.Write("var floor=" + Application["TableCount"] + ";");
        Response.Write("function NextFloor(){floor--;}");
        Response.Write("</script>");

        if (!Page.IsPostBack)
        {
            LMBind();
            TBcontents.Attributes.Add("onkeydown", "CtrlEnter('Submit');");

            if (Session["BUser"] != null)
            {
                TBuser.Text = Session["BUser"].ToString();
                //Session["BUser"] = null;
            }
            if (Session["QQorMSN"] != null)
            {
                TBQQMSN.Text = Session["QQorMSN"].ToString();
                //Session["QQorMSN"] = null;
            }
        }
    }

    protected void Submit_Click(object sender, EventArgs e)
    {
        if (TBuser.Text == "" || TBQQMSN.Text == "" || TBcontents.Text == "")
        {
            Response.Write("<Script Language=JavaScript>alert(\"提示:用户名、QQ/MSN、留言信息3项必填。\")</Script>");
            Response.Write("<Script Language=JavaScript>this.location.href=\"#IwantToSay\"</script>");

            Response.Write("<script>setTimeout(\"document.all.TBuser.focus();\",500);</script>");
后面还有 88 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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