wxxsd/wxxsd123/news/newsmodify.aspx.cs

(开头部分) 3KB

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

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
using System.Text.RegularExpressions;
using System.Drawing;
using System.Text;
using System.Net;

namespace wxxsd.wxxsd123.news
{
    public partial class newsmodify : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["id"] == null)
            {
                Response.Redirect("../login.aspx");
            }
            if(!IsPostBack)
            {
                bindUpdateNewsInfo();
            }
        }
        public void bindUpdateNewsInfo()
        {
            int ID = Convert.ToInt32(Request.QueryString["ID"]);
            DataTable dt = cs.news.getNewsById(ID);
            //int ClassID, string Title, string TitleEn, string Content, string ContentEn, string User, string UserEn,string Infotime,string ImgUrl)
            this.title.Value = dt.Rows[0]["Title"].ToString();
           
            this.txtNeirong.Text = dt.Rows[0]["Content"].ToString();
           
            this.Home.Value = dt.Rows[0]["Home"].ToString();
          
            this.User.Value = dt.Rows[0]["Users"].ToString();
      
            this.Image1.ImageUrl = dt.Rows[0]["ImgUrl"].ToString();

        }
        protected void Unnamed1_Click(object sender, EventArgs e)
        {
            int ID = Convert.ToInt32(Request.QueryString["ID"]);
            string content = this.txtNeirong.Text;
            string title = this.title.Value.Trim();
            string titleEn = "";
            int ClassID = 0;
            if (this.DropDownList1.SelectedValue != "")
            {
                ClassID = Convert.ToInt32(this.DropDownList1.SelectedValue);
            }
后面还有 30 行代码,购买后查看完整代码

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

AI 解读

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

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