AdimiFile/BooksManager.aspx.cs

(开头部分) 2KB

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

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

public partial class AdimiFile_BooksManager : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
       
      
          
        string strFileName = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString()
         + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
        txtISBN.Text = strFileName.ToString();

       

      
    }

    protected void TextBox4_TextChanged(object sender, EventArgs e)
    {

    }
    protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {

    }
    protected void txtmulu_TextChanged(object sender, EventArgs e)
    {

    }
    protected void txtpublicedname_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        if (FileUpload1.HasFile)
        {
            FileUpload1.SaveAs(Server.MapPath("~/images/" + txtISBN.Text + ".png"));//上传文件至某一路径下
        }
        string strContent1 = Server.HtmlEncode(txtcontent.Text);
        strContent1 = strContent1.Replace("\r\n", "</br>");
        strContent1 = strContent1.Replace("'", "''");
        strContent1 = strContent1.Replace(" ", "&nbsp;");
        TextBox2.Text = strContent1;


        string categoriesid = DropDownList1.SelectedValue;
        if(DropDownList1.SelectedValue=="")
        {  categoriesid = txtcategories.SelectedValue; }

后面还有 19 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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