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

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
U
Unit 42
Y
Y Combinator Blog
I
InfoQ
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
量子位
Microsoft Security Blog
Microsoft Security Blog
B
Blog
The Cloudflare Blog
F
Fortinet All Blogs
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
C
Check Point Blog
S
SegmentFault 最新的问题
爱范儿
爱范儿
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
T
Tailwind CSS Blog

博客园 - T_98Dsky

通过避免下列 10 个常见 ASP.NET 缺陷使网站平稳运行 一触即发! - T_98Dsky - 博客园 目录身份验证 123hoo.com网摘中国开发手记(一)都是些简单的东西!:) 简单实用的重写URL(URLRewriter.dll) - T_98Dsky - 博客园 BMF http://www.rob-howard.net/ 备份SQL,在网上找到的,很简单,不错! 生成随机码,保存随机文件. 一个不错的SQL储存过程分页,储存过程+Repeater,如果只是浏览数据的话,快就一个字 把网上的图片取下来生成缩略图,以前在CSDN的一个朋友教的方法. yetanotherforum.net阅读笔记,(C#)因为工作的关系,习惯了VB.net,就用VB.net写吧(1) 虽然平时也都经常用到,.net+客户端脚本,从 ASP.NET 服务器控件插入客户端脚本 参考一个snapnet写的一个Repeater排序,他写的是C#版,我写的是VB.net版 一直都不清楚RSS,照着一个C#的例子,随便写了一个,也不知道对不对! 静态页面HTML绑定动态数据.aspx,用document.write的方法! 通过 XML 发布新闻 用 T-SQL 操作 XML 返回指定目录的物理路径 选择合适的数据控件
sharpziplib是一个不错的在线压缩软软件.用VB.net简单写了个...
T_98Dsky · 2005-06-14 · via 博客园 - T_98Dsky

 1Dim zipname As String = Path.Combine(Me.zipdir, (Me.txtZipFile.Text.ToString & ".zip"))
 2        Dim crc1 As New Crc32
 3        Dim s As ZipOutputStream = New ZipOutputStream(File.Create(zipname))
 4        s.SetLevel(6)
 5        Dim i As Integer
 6        Dim flename As String() = {Server.MapPath("temp\index.htm"), Server.MapPath("temp\regriter.htm")}
 7
 8        For i = 0 To flename.Length - 1
 9            Dim name As String = flename(i)
10            Dim stratem As FileStream = File.OpenRead(name)
11            Dim buffer As Byte() = New Byte(stratem.Length - 1) {}
12            stratem.Read(buffer, 0, buffer.Length)
13            Dim filename1 As String = name.Replace((Me.timpdir & "\"), "")
14            Dim entry As New ZipEntry(filename1)
15            entry.DateTime = DateTime.Now
16            entry.Size = stratem.Length
17            stratem.Close()
18            crc1.Reset()
19            crc1.Update(buffer)
20            entry.Crc = crc1.Value
21            s.PutNextEntry(entry)
22            s.Write(buffer, 0, buffer.Length)
23        Next
24        s.Finish()
25        s.Close()

 1Imports System.IO
 2
 3Public Class util
 4
 5    Public Shared Function GetDirecotry(ByVal DirecotryName As StringAs String
 6        Dim dir As String = HttpContext.Current.Request.PhysicalApplicationPath
 7        dir = Path.Combine(dir, DirecotryName)
 8        If Directory.Exists(dir= True Then
 9            Directory.CreateDirectory(dir)
10        End If
11        Return dir
12    End Function

13
14End Class