谁有好的asp源码相册?

谁有好的asp源码相册?,第1张

朱朱相册 v2.5

采用ASP+ACCESS+ASPUP…… 推荐 2006-9-22 23:35:00 343 64

运行环境:ASP 授权方式:免费软件

朱朱相册 v3.0

采用ASP+ACCESS+ASPUP…… 推荐 2006-9-22 23:35:00 719 551

运行环境:ASP 授权方式:免费软件

朱朱相册 v2.01

采用ASP+ACCESS+ASPUP…… 推荐 2006-7-22 23:28:00 1418 362

运行环境: 授权方式:免费软件

小k在线网络相册 v1.40

小K在线网络相册 v1.40

…… 推荐 2006-5-28 16:11:00 1104 7701

运行环境:ASP 授权方式:免费软件

e域皇朝flash相册管理系统 v1.0

为个人用户量身定制的一套相册程序,具…… 推荐 2006-5-10 15:58:00 1908 1892

运行环境:ASP 授权方式:免费软件

p2p电影系统sql版+组合blog+mp4+dv+相册+日记

无廷时播放技术:超强播放技术,无廷时…… 推荐 2006-4-6 0:32:00 2005 65172

运行环境:ASP 授权方式:共享软件

飞鸟个人相册 v3.0

主要采用了flash,xml,asp…… 推荐 2005-12-8 17:55:00 8138 577

运行环境:ASP 授权方式:免费软件

飞鸟个人相册 v2.0

更改相册首页图片,无限级分类,可自定…… 推荐 2005-8-1 18:07:00 3392 421

运行环境:ASP 授权方式:免费软件

羽色天空相册程序 v1.1

一个很精简的相册程序,界面美化,很适…… 推荐 2005-7-21 12:15:00 5169 113

运行环境:ASP 授权方式:免费软件

伊恋娱乐相册中心 v1.0

1 增加后台控制图片上传功能

================================

http://down.chinaz.com/L/1_Lastuptime_Desc_1.asp

在这里搜索一下。。。。

http://www.downcode.com/sort/j_5_8_28163004.shtml

http://www.downcodes.com/infoview/Article_934.html

http://www.fwvv.net/

都看看

<%@ Page language="c#" Codebehind="GetThumbnail.aspx.cs" AutoEventWireup="false" Inherits="TipsTricks.Ch4.ShowSmallImage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<HTML>

<HEAD>

<title>ShowSmallImage</title>

<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">

<meta name="CODE_LANGUAGE" Content="C#">

<meta name="vs_defaultClientScript" content="JavaScript">

<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">

</HEAD>

<body MS_POSITIONING="FlowLayout">

<form id="ShowSmallImage" method="post" runat="server">

<FONT face="黑体"></FONT>

</form>

</body>

</HTML>

using System

using System.Collections

using System.ComponentModel

using System.Data

using System.Data.SqlClient

using System.Drawing

using System.Drawing.Imaging

using System.Web

using System.Web.SessionState

using System.Web.UI

using System.Web.UI.WebControls

using System.Web.UI.HtmlControls

using System.IO

namespace TipsTricks.Ch4

{

/// <summary>

/// Summary description for ShowSmallImage.

/// </summary>

public class ShowSmallImage : System.Web.UI.Page

{

const int MaxLength=150//最大长度�

private void Page_Load(object sender, System.EventArgs e)

{

if (Request.QueryString["filename"] != null)

{

//取得原图

string filename=Request.QueryString["filename"]

Bitmap bmpOld= new Bitmap(Server.MapPath("images/" + filename))

//计算缩小比例

double d1

if (bmpOld.Height>bmpOld.Width)

d1=(double)(MaxLength/(double)bmpOld.Width)

else

d1=(double)(MaxLength/(double)bmpOld.Height)

//产生缩图

Bitmap bmpThumb= new Bitmap(bmpOld,(int)(bmpOld.Width*d1),(int)(bmpOld.Height*d1))

// 清除缓冲

Response.Clear()

//生成图片

bmpThumb.Save(Response.OutputStream, ImageFormat.Jpeg)

Response.End()

//释放资源

bmpThumb.Dispose()

bmpOld.Dispose()

}

}

#region Web Form Designer generated code

override protected void OnInit(EventArgs e)

{

//

// CODEGEN: This call is required by the ASP.NET Web Form Designer.

//

InitializeComponent()

base.OnInit(e)

}

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

private void InitializeComponent()

{

this.Load += new System.EventHandler(this.Page_Load)

}

#endregion

}

}

<%@ Page language="c#" Codebehind="ListImage.aspx.cs" AutoEventWireup="false" Inherits="TipsTricks.Ch4.ListImage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<HTML>

<HEAD>

<title>ListImage</title>

<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">

<meta name="CODE_LANGUAGE" Content="C#">

<meta name="vs_defaultClientScript" content="JavaScript">

<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">

</HEAD>

<body MS_POSITIONING="FlowLayout">

<form id="ListImage" method="post" runat="server">

<P><FONT face="黑体">

<asp:DataList id="DataList1" runat="server" Width="28px" RepeatColumns="4" RepeatDirection="Horizontal"

BorderWidth="1px" GridLines="Vertical" CellPadding="3" BackColor="White" BorderStyle="None"

BorderColor="#999999">

<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#008A8C"></SelectedItemStyle>

<HeaderTemplate>

<FONT face="宋体"></FONT>

</HeaderTemplate>

<SelectedItemTemplate>

<FONT face="宋体"></FONT>

</SelectedItemTemplate>

<AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle>

<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>

<ItemTemplate>

<asp:HyperLink id=HyperLink1 Runat="server" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.filename", "images/{0}") %>' Target="_blank">

<asp:Image id=Image2 runat="server" ImageUrl='<%# "GetThumbnail.aspx?filename=" + Server.UrlEncode(DataBinder.Eval(Container, "DataItem.filename").ToString()) %>' AlternateText='<%# "文件名称:" + DataBinder.Eval(Container, "DataItem.filename") + "\n文件尺寸:" + DataBinder.Eval(Container, "DataItem.size") + " bytes" %>'>

</asp:Image>

</asp:HyperLink>

<asp:Button id="Button1" onclick="HHH" runat="server" Text="Button"></asp:Button>

</ItemTemplate>

<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>

<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#000084"></HeaderStyle>

<AlternatingItemTemplate>

<FONT face="宋体"></FONT>

</AlternatingItemTemplate>

<EditItemTemplate>

<FONT face="宋体"></FONT>

</EditItemTemplate>

</asp:DataList></P>

</form>

</FONT>

</body>

</HTML>

using System

using System.Collections

using System.ComponentModel

using System.Data

using System.Drawing

using System.Web

using System.Web.SessionState

using System.Web.UI

using System.Web.UI.WebControls

using System.Web.UI.HtmlControls

using System.IO

namespace TipsTricks.Ch4

{

/// <summary>

/// Summary description for ListImage.

/// </summary>

public class ListImage : System.Web.UI.Page

{

protected System.Web.UI.WebControls.DataList DataList1

private void Page_Load(object sender, System.EventArgs e)

{

if (!IsPostBack)

{

//获取文件名称

string[] files=Directory.GetFiles(Server.MapPath("images"))

//建立数据表

DataTable dt=new DataTable()

dt.Columns.Add("filename")

dt.Columns.Add("size")

foreach (string s in files)

{

DataRow dr=dt.NewRow()

FileInfo f=new FileInfo(s)

dr["filename"]=f.Name

dr["size"]=f.Length

dt.Rows.Add(dr)

}

//绑定显示

this.DataList1.DataSource=dt

this.DataList1.DataBind()

}

}

public void HHH(object sender, System.EventArgs e)

{

this.Response.Write("hello")

}

#region Web Form Designer generated code

override protected void OnInit(EventArgs e)

{

//

// CODEGEN: This call is required by the ASP.NET Web Form Designer.

//

InitializeComponent()

base.OnInit(e)

}

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

private void InitializeComponent()

{

this.Load += new System.EventHandler(this.Page_Load)

}

#endregion

}

}


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/11600217.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-17
下一篇 2023-05-17

发表评论

登录后才能评论

评论列表(0条)

保存