SysManage/FileInfoOper.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 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.Data.SqlClient;

public partial class SysManage_FileInfoOper : System.Web.UI.Page
{
    string id = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        id = Request.QueryString["id"];
        if (!IsPostBack)
        {
            DB.Bind_Dropdownlist("select * from filetype", ddlType, "filetypeid", "filetypename");
            if (!string.IsNullOrEmpty(id))
            {
                Get_Data();
            }
            else
            {
                txtUserName.Text = HttpUtility.UrlDecode(Request.Cookies["loginuser"]["Title"].ToString());
            }
        }
    }

    void Get_Data()
    {
        try
        {
            DataTable dt = DB.getDataTable("select * from FileInfo where FileInfoId=" + id);
            if (dt.Rows.Count == 1)
            {
                txtTitle.Text = dt.Rows[0]["Title"].ToString();
                ddlType.SelectedValue = dt.Rows[0]["TypeId"].ToString();
                ltlFileAddress.Text = "/Program" + dt.Rows[0]["FileAddress"].ToString();
                txtGeShi.Text = dt.Rows[0]["GeShi"].ToString();
                txtIntro.Text = dt.Rows[0]["Intro"].ToString();
                txtUserName.Text = dt.Rows[0]["UserName"].ToString();
            }
        }
        catch (Exception ex)
        {
            Common.ShowMessage(this.Page, "页面加载时出现异常。", "");
            return;
        }
    }

    /// <summary>
    /// 按钮事件:提交信息
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnSubmit_Click(object sender, EventArgs e)
后面还有 54 行代码,购买后查看完整代码

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

AI 解读 AI

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

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