SiteAdmin/Aspx/MYPettyProductEdit.aspx.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.IO;

public partial class SiteAdmin_Aspx_MYPettyProductEdit : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Cookies["roleid"] != null)
        {
            if (!IsPostBack)
            {
                binddr();
            }
        }
        else
        {
            MessageBox.ShowAndRedirect(this.Page, "对不起!您还没有登录系统。", "../Logout.aspx");
        }
    }
    public void binddr()
    {
        try
        {
            PettyProduct myn = new PettyProduct();
            myn.GetModel(Convert.ToInt16(Request.QueryString["ID"].ToString()));
            TextBox_Name.Text = myn.Name;

            TextBox_SYDX.Text = myn.SYDX;

            FCKeditor_Content.Value = myn.CPJS;

            HiddID.Text = myn.Logo;
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
    protected void LinkButton_Add_Click(object sender, EventArgs e)
    {
        string Name = TextBox_Name.Text.Trim();

        string SYDX = TextBox_SYDX.Text.Trim();

        string BID = Server.HtmlEncode(Request.Cookies["dwid"].Value);
        string CPJS = FCKeditor_Content.Value;

        if (FileUpload_image.HasFile)
        {
            string FileExt = System.IO.Path.GetExtension(FileUpload_image.FileName).ToUpper();
            if (FileExt != ".JPG" && FileExt != ".BMP" && FileExt != ".PNG" && FileExt != ".GIF")
            {
                ClientScript.RegisterStartupScript(this.GetType(), "", "<script type=\"text/javascript\">alert(\" 不支持的文件格式,请上图片文件\")</script>");
            }
后面还有 64 行代码,购买后查看完整代码

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

AI 解读 AI

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

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