⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thumbnail.aspx.cs

📁 用flash做的网页上传工具
💻 CS
字号:
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.Collections.Generic;

public partial class thumbnail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
		string id = Request.QueryString["id"] as string;
		if (id == null)
		{
			Response.StatusCode = 404;
			Response.Write("Not Found");
			Response.End();
			return;
		}

		List<Thumbnail> thumbnails = Session["file_info"] as List<Thumbnail>;

		if (thumbnails == null)
		{
			Response.StatusCode = 404;
			Response.Write("Not Found");
			Response.End();
			return;
		}

		foreach (Thumbnail thumb in thumbnails)
		{
			if (thumb.ID == id)
			{
				Response.ContentType = "image/jpeg";
				Response.BinaryWrite(thumb.Data);
				Response.End();
				return;
			}
		}

		// If we reach here then we didn't find the file id so return 404
		Response.StatusCode = 404;
		Response.Write("Not Found");
		Response.End();
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -