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

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - 四两

[转载]独家:.NET开发人员必知的八个网站 Arcgis Server开发群 oracle导出数据和表的结构 将E00矢量数据转换为shapefile文件 bs开发中常用的javascript技术 arcgis安装错误hresult:0x80070005解决 『转载』学习asp.net比较完整的流程 [转]解决“GridView1”激发了未处理的事件“PageIndexChanging” - 四两 - 博客园 控制图层的现实 绑定SqlDataSource的Gridview字符串字段长度截取 解决不能删除arcsde数据源的featureclass和table的方法 Arcgis server error:File inaccessible arcgis server object container account KML文件格式介绍 csdn为什么不能访问? asp.net验证码刷新 - 四两 - 博客园 oracle关键字特别注意 FreeTextBox3.1.6使用说明(整理) 编译器错误,错误代码为1。 asp.net 检测到有潜在危险的 Request.Form 值
Asp.net上传图片产生预览效果(转)
四两 · 2008-07-29 · via 博客园 - 四两

网上看到的,记一下。
第一种,在html中可以运行,但在asp.net 中出错:
<div id=viewImage></div>
 <asp:FileUpload ID="uper" runat="server" onpropertychange="show(this.value)" />
function show(va)
    {
        document.getElementById("viewImage").innerHTML="<img src="+va+" />";
    }
第二种,IE6、7都可以,
<div id="divview" style="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image);
            width: 166px; height: 190px">
        </div>
        <asp:FileUpload ID="uper" runat="server" onpropertychange="show1(this.value)" />
        <div>

 function show1(upimg)
    {
         var dd=document.getElementById("divview");
         dd.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = upimg;
         dd.style.width = 166;
         dd.style.height = 190;
         dd.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").sizingMethod = 'scale';
    }

这里的抄的别人的,不理解为什么,不过知道是通过滤器实现。

加油,哥们,现在开始!