最新评论
Re:SiteMapProvider 贺臣 2011-07-25 15:00
原理也应该是根据URL 查找吧
Re:favicon.ico图标在线制作+ico下载 canbeing 2010-01-17 11:26
这个工具不错,比我找的要清晰多了
re: 上海 招聘 asp.net jq 的程序员 jueban's space 2009-07-02 23:48
re: 上海 招聘 asp.net jq 程序员 jueban's space 2009-06-22 13:39
4-8k
BS一下lz,9.9999成时转的。
因为 3楼说的问题 LZ根本不知道。
re: sql2005 lixi 2009-05-14 10:49
--表
select * from dbo.sysobjects where OBJECTPROPERTY(id, N'IsUserTable') = 1 and refdate>'2006-05-01'
--视图
select * from dbo.sysobjects where OBJECTPROPERTY(id, N'IsView') = 1 and refdate>'2006-05-01'
--存储过程
select * from dbo.sysobjects where OBJECTPROPERTY(id, N'IsProcedure') = 1 and refdate>'2006-05-01
re: favicon.ico图标在线制作+ico下载 guantanamo 2009-03-20 17:56
我的就是出不来 用asp做的网站 head里什么都家了不同大小的icon换了无数 无耐了 寻求帮助 q:33539505
汗
一些文本文件的编码好像跟内容有关系诶
try
{
buffer = r.ReadByte();
fileclass = buffer.ToString();
buffer = r.ReadByte();
fileclass += buffer.ToString();
}
public static bool IsAllowedExtension(FileUpload hifile)
{
//System.IO.FileStream fs = new System.IO.FileStream(hifile.PostedFile.FileName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
//System.IO.BinaryReader r = new System.IO.BinaryReader(fs);
int fileLen = hifile.PostedFile.ContentLength;
byte[] imgArray = new byte[fileLen];
hifile.PostedFile.InputStream.Read(imgArray, 0, fileLen);
System.IO.MemoryStream fs = new System.IO.MemoryStream(imgArray);
System.IO.BinaryReader r = new System.IO.BinaryReader(fs);
string fileclass = "";
byte buffer;
try
{
buffer = r.ReadByte();
fileclass = buffer.ToString();
buffer = r.ReadByte();
fileclass += buffer.ToString();
}
catch
{
return false;
}
r.Close();
fs.Close();
/*文件扩展名说明
jpg:255216
bmp:6677
gif:7173
xls,doc,ppt:208207
rar:8297
zip:8075
txt:98109
pdf:3780
*/
bool ret = false;
String[] fileType = {
"255216",
"6677",
"7173",
"208207",
"8297",
"8075",
"98109",
"3780"
};
for (int i = 0; i < fileType.Length; i++)
{
if (fileclass == fileType[i])
{
ret = true;
break;
}
}
return ret;
}
re: ASP.NET 2.0 下的验证码控件 freedomstyle 2008-11-14 16:13
呵呵 学习学习 谢谢啦!!!
re: sdsd jueban's space 2008-11-14 13:49
System.IO.FileStream fs = new System.IO.FileStream(hifile.PostedFile.FileName
当放在服务器端的时候,他访问不到你本地目录,传起来会有错误出现。
re: 63335503 jueban's space 2008-11-10 20:54
re: error jueban's space 2008-11-10 20:53
re: sdsd jueban's space 2008-10-31 19:05
re: sdsd jueban's space 2008-10-22 16:23
re: error jueban's space 2008-10-14 13:09
24226299@qq.com
re: 进度条 jueban's space 2008-08-27 21:37
re: 63335503 jueban's space 2008-08-27 21:15
re: 63335503 jueban's space 2008-08-22 10:57
开发版(Developer): PTTFM-X467G-P7RH2-3Q6CG-4DMYB
企业版(Enterprise): JD8Y6-HQG69-P9H84-XDTPG-34MBB
re: dd jueban's space 2008-07-25 17:42
re: ASP.NET中最漂亮、最酷的弹出对话框 Traverlin 2008-07-22 15:09
我很想在这个控件源代码引入一个js文件,发现老是出现运行时间错误。郁闷~~~,好像都无法容纳script标签。
re: 372031108 jueban's space 2008-07-19 11:24
Hi,看了你code觉得想法挺好的!但是好像发现一个逻辑bug,
new System.IO.FileStream(hifile.PostedFile.FileName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
hifile.PostedFile.FileName 这里的路径是否要考虑到不在同一台电脑上的情况。
哦,不是,是我上传的文件大点会挂,没有限制文件打小
大哥 有问题呀,我如果上传 .exe文件 网页就挂啦,怎么解决呢?
re: 进度条 oh 2008-05-24 14:52
这个看的不大懂。
re: sdsd jueban's space 2008-05-16 17:43
re: ttt jueban's space 2008-03-31 17:38
PYHYP WXB3B B2CCM V9DX9 VDY8T
re: 纯CSS Lightbox效果 autodesker 2008-03-12 09:40
<a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">
这个不是JS脚本么?
这个代码都给转烂了~~
re: 验证码 sgase 2008-02-03 10:47
谢谢你!我在项目中采用了这个.
re: favicon.ico图标在线制作+ico下载 jueban's space 2008-02-02 15:37
806308120
re: 验证码 jueban's space 2008-01-21 18:11
<%@ WebHandler Language="C#" Class="Handler" %>
using System;
using System.Web;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
public class Handler : IHttpHandler {
public void ProcessRequest (HttpContext context) {
CreateCheckCodeImage("http://", context);
//context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
}
private void CreateCheckCodeImage(string checkCode, HttpContext context)
{
if (checkCode.Trim() == "" || checkCode == null)
return;
//context.Session["Code"] = checkCode; //将字符串保存到Session中,以便需要时进行验证
System.Drawing.Bitmap image = new System.Drawing.Bitmap((int)(checkCode.Length * 14), 20);
Graphics g = Graphics.FromImage(image);
try
{
g.Clear(Color.White);
Font font = new System.Drawing.Font("Arial", 10);
System.Drawing.Drawing2D.LinearGradientBrush brush = new System.Drawing.Drawing2D.LinearGradientBrush(new Rectangle(0, 0, image.Width, image.Height), Color.Blue, Color.Green, 1.2F, true);
g.DrawString(checkCode, font, brush, 2, 2);
//画图片的前景噪音点
g.DrawRectangle(new Pen(Color.Silver), 0, 0, image.Width - 1, image.Height - 1);
System.IO.MemoryStream ms = new System.IO.MemoryStream();
image.Save(ms, System.Drawing.Imaging.ImageFormat.Gif);
context.Response.ClearContent();
context.Response.ContentType = "image/Gif";
context.Response.BinaryWrite(ms.ToArray());
ms.Close();
ms.Dispose();
g.Dispose();
image.Dispose();
}
catch
{
g.Dispose();
image.Dispose();
}
}
public bool IsReusable {
get {
return false;
}
}
}
re: 动态生成iframe jueban's space 2008-01-17 13:14
连云港港务局东泰公司供电所张立冬
re: 转贴 lightbox jueban's space 2008-01-02 18:23
63335503
re: 动态生成iframe jueban's space 2007-11-20 23:13
DynamicQuery