⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 floweregg.aspx.cs

📁 如果不使用IIS,请先运行 XSP.exe,待提示已侦听 8080端口后
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DNNLite.DesktopModules.Comment;
using System.Web.Configuration;
using NHibernate.Expression; 

public partial class DesktopModules_Comment_FlowerEgg : System.Web.UI.Page
{

    private int commentid;
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (string.IsNullOrEmpty(Request["id"]))
        //{
        //    return;
        //}
        commentid = int.Parse( Request["id"]);

        Comment c= Comment.Find(commentid);

        //string json = string.Format( "{{\"backers\":{0},\"antis\":{1}}}" ,c.Backers,c.Antis  );

        //Response.Write(json);

        if (Request["stand"] == "flower")
        {
            c.Backers += 1;
            Response.Write(c.Backers);
        }
        if (Request["stand"] == "egg")
        {
            c.Antis  += 1;
            Response.Write(c.Antis);
        }
        c.Update();

        

        Response.End();

    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -