惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
GbyAI
GbyAI
I
InfoQ
C
Cisco Blogs
T
Tor Project blog
NISL@THU
NISL@THU
N
Netflix TechBlog - Medium
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
T
The Exploit Database - CXSecurity.com
H
Help Net Security
Cisco Talos Blog
Cisco Talos Blog
The Register - Security
The Register - Security
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
A
Arctic Wolf
Stack Overflow Blog
Stack Overflow Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Palo Alto Networks Blog
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
P
Privacy International News Feed
L
LINUX DO - 热门话题
Know Your Adversary
Know Your Adversary
L
LangChain Blog
AWS News Blog
AWS News Blog
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
U
Unit 42
P
Privacy & Cybersecurity Law Blog
Spread Privacy
Spread Privacy
WordPress大学
WordPress大学
Latest news
Latest news
L
Lohrmann on Cybersecurity
小众软件
小众软件
阮一峰的网络日志
阮一峰的网络日志
Simon Willison's Weblog
Simon Willison's Weblog
雷峰网
雷峰网
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Y
Y Combinator Blog
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements
C
Cybersecurity and Infrastructure Security Agency CISA
Martin Fowler
Martin Fowler
S
Schneier on Security
C
CERT Recently Published Vulnerability Notes
B
Blog
Project Zero
Project Zero
Recorded Future
Recorded Future

博客园 - MSDI

报This application is currently offline……解决方法 用IIS建立高安全性Web服务器 ASP返回操作必须使用可更新的查询错误4种可能 "此页的状态信息无效,可能已损坏。”的解决办法 - MSDI - 博客园 Windows 2003 的默认上传文件大小和大小限制的问题 微软Silverlight和Adobe Flash短兵相接 Returnil Virtual System Personal/Business Beta 1.70.6160 DES对称加解密方法 数据库开发总结(ADO.NET小结) 核心对象的连载(String对象) 核心对象的连载(Date对象) TD的noWrap属性使用注意事项 核心对象的连载(Math对象) 核心对象的连载(Array对象) ASP.NET2.0教程(第二章) ASP.NET2.0教程(第一章) ASP.NET2.0教程(前言) asp.net上传图片并生成缩略图 GDI+ 中发生一般性错误的解决方法
关于缩略图的实现方式 - MSDI - 博客园
MSDI · 2008-04-17 · via 博客园 - MSDI

今天研究了下实现缩略图的问题,总结了些东东,在此帖出来供大家浏览.
实现方式有两种:
1)通过img标签实现
后台代码:
if(imgUrls != "")  //imgUrls是传递到后台的字符串,在这里因为数据量不大,用string来构造就行了,不需要stringbulid对象去构造.
{
string [] urls = imgUrls.Split(',');
for(int i=0; i<urls.Length; i++)
{
  images += "<IMG class='f3' src='写相对地址就行了" + urls[i] + "' onclick=window.open('" + urls[i] + "'); style='cursor:hand;'>&nbsp;&nbsp;";
}
}

2)通过asp:image控件实现

前台很简单,就是拖几个控件就行了.
后台的话需要用到GetThumbnailImage方法,这个是生成缩略图的方法,有兴趣可以在google中搜索下,可以找到相关的源程序,我这里就不帖出来了.