• 大小: 2.53MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-29
  • 语言: 其他
  • 标签: .net  

资源简介

图片管理系统 提供学习参考使用。谢谢

资源截图

代码片段和文件信息

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;

public partial class Build : System.Web.UI.Page
{
    ImageDatabase imgData = new ImageDatabase();
    protected void Page_Load(object sender EventArgs e)
    {
        if (!IsPostBack)
        {
            //判断参数值是否为空,如果不为空获取参数值。
            if (Request.Params[“ImgID“] != null)
            {
                imgBtnAddDir.Enabled = true;
                ViewState[“ImgID“] = Request.Params[“ImgID“].ToString();
            }
            else
            {
                imgBtnAddDir.Enabled = false;
                ViewState[“ImgID“] = ““;
            }
        }
    }
    protected void imgBtnAddDir_Click(object sender ImageClickEventArgs e)
    {
        //在指定的参数值(目录)中创建新的目录,保存到数据库中
        imgData.AddNode(txtDirName.Text ““ “1“ ViewState[“ImgID“].ToString());
        Response.Write(“ript>window.alert(‘目录添加成功!‘)ript>“);
    }
    protected void imgBtnReturn_Click(object sender ImageClickEventArgs e)
    {
        Response.Redirect(“~/Default.aspx“);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2112  2008-08-14 23:57  15\PictureManager\Alex.GIF

     文件       5653  2008-07-29 03:02  15\PictureManager\App_Code\ImageDatabase.cs

     文件       5085  2008-08-15 18:32  15\PictureManager\App_Code\PictureSet.cs

     文件    1048576  2008-11-05 00:35  15\PictureManager\App_Data\db_picture_Data.MDF

     文件    1048576  2008-11-05 00:35  15\PictureManager\App_Data\db_picture_Log.LDF

     文件       6855  2008-08-14 22:00  15\PictureManager\Building.aspx

     文件       1402  2008-08-14 21:57  15\PictureManager\Building.aspx.cs

     文件        901  2008-08-14 22:52  15\PictureManager\css\css.css

     文件       8389  2008-08-14 23:22  15\PictureManager\Default.aspx

     文件       9359  2008-08-14 23:18  15\PictureManager\Default.aspx.cs

     文件       4492  2008-08-27 00:37  15\PictureManager\Edit.aspx

     文件       1348  2008-08-14 22:01  15\PictureManager\Edit.aspx.cs

     文件       1018  2008-08-01 22:52  15\PictureManager\Image\Dir.gif

     文件         79  2008-08-01 22:53  15\PictureManager\Image\Picture.gif

     文件       1064  2008-08-01 22:52  15\PictureManager\Image\Root.gif

     文件       2185  2008-08-01 21:13  15\PictureManager\images\b1.jpg

     文件      45352  2008-08-01 21:17  15\PictureManager\images\bbg.jpg

     文件       1808  2008-08-01 21:18  15\PictureManager\images\bbg1.jpg

     文件        844  2008-08-01 21:18  15\PictureManager\images\bbg2.jpg

     文件       2573  2008-08-01 21:19  15\PictureManager\images\bbg3.jpg

     文件       1064  2008-08-01 22:52  15\PictureManager\images\biao1.gif

     文件       1018  2008-08-01 22:52  15\PictureManager\images\biao2.gif

     文件         79  2008-08-01 22:53  15\PictureManager\images\biao3.gif

     文件       6562  2008-08-01 21:35  15\PictureManager\images\btbg.jpg

     文件       2490  2008-08-14 22:04  15\PictureManager\images\btn1.jpg

     文件       2546  2008-08-14 22:04  15\PictureManager\images\btn2.jpg

     文件       2531  2008-08-14 22:04  15\PictureManager\images\btn3.jpg

     文件       2539  2008-08-14 22:05  15\PictureManager\images\btn4.jpg

     文件      22776  2008-08-02 00:29  15\PictureManager\images\dhbg.jpg

     文件      28216  2008-08-01 21:00  15\PictureManager\images\end.jpg

............此处省略44个文件信息

评论

共有 条评论