文章分类 -  [转]net

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 61 下一页
通过 HTTP POST 上传文件到服务器.
摘要:在写 ASP.NET 应用的时候, 往往会碰到客户端上传文件的情况,这个时候客户一般希望能够想 windows 应用一样, 能够选择文件夹, 浏览所要下载的文件,批量上传, 这个时候. 有几个特征:1. 客户可以自由的浏览本地的文件夹, 选择多个文件同时上传. 2. 上传之前用户无法预知上传文件的数目. 3. 因为是 ASP.NET 应用, 客户端可能没有装 .NET Framework.其实,我... 阅读全文
posted @ 2007-03-27 14:11 mbskys 阅读(296) 评论(0) 推荐(0)
ASP.NET环境下执行cmd命令
摘要:ASP.NET Shell V1.0 By fineacer ASP.NET环境下执行cmd命令的程序,相当于cmd.asp不过这个需要asp.net环境,由于IIS6的机制,本程序不能在IIS6运行,不过可以很好的支持IIS5.x + .net framework.http://www.cnblogs.com/lordz/articles/600334.html 阅读全文
posted @ 2007-03-27 09:41 mbskys 阅读(285) 评论(0) 推荐(0)
ASP.Net中的MD5加密
摘要:其实在ASP.Net编程中,不用调用md5.asp来加密数据。在DotNet中有自带的类:System.Web.Security.HashPasswordForStoringInConfigFile() public string md5(string str,int code) { if(code==16) //16位MD5加密(取32位加密的9~25字符) { return System.We... 阅读全文
posted @ 2007-03-27 09:40 mbskys 阅读(120) 评论(0) 推荐(0)
我的asp.net程序当前占用了多少内存?
摘要:如果您想在页面中显示出来当前asp.net程序占用了多少内存,那么可以使用: double memoryUsage = (((double)System.Diagnostics.Process.GetCurrentProcess().WorkingSet64) / 1024) / 1024; 来计算,单位是MBhttp://www.cnblogs.com/lordz/ar... 阅读全文
posted @ 2007-03-27 09:39 mbskys 阅读(68) 评论(0) 推荐(0)
NET和SQL Server中“空值”辨析
摘要:初学数据库编程我们可能会有一些对“空值”的疑问,比如通过编程新建的一个表中所有数据皆显示为,手动添加并删除文字后又变成了空白;一个字符串类型的字段,明明没有填值,却不等于"";用ADO.NET从数据库中取值,每遇到有的就出错……这需要我们正确认识.NET和SQL Server中几种不同的“空值”。 1、真正的空值,也就是“没有输入的值”,可以出现在大多数类型的字段中(如果没有别的约束条件),SQ... 阅读全文
posted @ 2007-03-26 23:51 mbskys 阅读(111) 评论(0) 推荐(0)
获得Asp.net程序的内存占用量
摘要:System.Diagnostics.Process.GetCurrentProcess().WorkingSet64该属性是.net 2.0中新增的,1.1中可以用下面这个System.Diagnostics.Process.GetCurrentProcess().WorkingSet这样就可以知道你的asp.net程序到底占用了多少内存了 http://www.miles8.com/artic... 阅读全文
posted @ 2007-03-26 23:46 mbskys 阅读(175) 评论(0) 推荐(0)
利用Timer在ASP.NET中实现计划任务
摘要:.NET Framework中为我们提供了3种类型的Timer,分别是:Server Timer(System.Timers.Timer),Thread Timer(System.Threading.Timer )和Windows Timer(System.Windows.Forms.Timer)。其中Windows Timer和WinAPI中的Timer一样,是基于消息的,而且是单线程的。另外两... 阅读全文
posted @ 2007-03-26 23:46 mbskys 阅读(171) 评论(0) 推荐(0)
用Log4net记录ASP.NET程序中未处理的异常
摘要:首先添加一个Global.asax文件,然后再Global.asax.cs中添加如下代码: 程序代码 protected void Application_Error(object sender, EventArgs e) { log4net.ILog logger = log4net.LogManager.GetLogger("DemoLogger"); ... 阅读全文
posted @ 2007-03-26 23:44 mbskys 阅读(162) 评论(0) 推荐(0)
使用iis发布wcf服务
摘要:http://www.cnblogs.com/stswordman/archive/2007/03/15/669420.html 阅读全文
posted @ 2007-03-26 23:36 mbskys 阅读(125) 评论(0) 推荐(0)
SoftTree SQL Assistant - for Oracle and SQL Server
摘要:http://www.softtreetech.com/isql.htm http://www.miles8.com/article.asp?id=392http://www.miles8.com/article.asp?id=381http://www.miles8.com/article.asp?id=125http://www.miles8.com/article.asp?id=336 阅读全文
posted @ 2007-03-26 23:27 mbskys 阅读(377) 评论(0) 推荐(0)
C#的新操作符
摘要:C# 2.0提出能对nullable类型进行操作的新操作符“??”(双问号)。这个操作符允许将nullable类型重新指定为非nullable类型,并且如果nullable类型的值是null,还可以重新定义值。 例子如下: ViewState["Offset"] ?? 0 ,意思是如果ViewState["Offset"] 是null的话,就把0付给ViewState["Offset... 阅读全文
posted @ 2007-03-26 22:47 mbskys 阅读(123) 评论(0) 推荐(0)
漂亮的弹出对话框,Asp.net的一个控件
摘要:http://www.cnblogs.com/dlwang2002/archive/2007/03/23/685606.html 阅读全文
posted @ 2007-03-23 18:40 mbskys 阅读(493) 评论(0) 推荐(0)
xml文件net操纵类(c#)
摘要:using System;using System.Xml;using System.Web;namespace MX.XML{ /**//// /// XML核心类: /// 必需用XPath表达式来获取相应节点 /// public class Core { 变量---------------------------------------... 阅读全文
posted @ 2007-03-23 13:14 mbskys 阅读(199) 评论(0) 推荐(0)
将Image对象和byte[]互相转换
摘要://需要引入的命名空间using System;using System.IO;using System.Drawing;using System.Runtime.Serialization.Formatters.Binary; //引入供序列化Image对象使用//以下为转换方法//将Image转换为byte[]public byte[] ConvertImage(Image image){ ... 阅读全文
posted @ 2007-03-22 12:51 mbskys 阅读(2856) 评论(0) 推荐(0)
as3+amf3 服务器端保存图片
摘要:http://www.guodong.net/blog/article.asp?id=238 阅读全文
posted @ 2007-03-22 12:38 mbskys 阅读(126) 评论(0) 推荐(0)
在winform調用WebService上傳文件~
摘要:http://www.cnblogs.com/YaKa/archive/2006/06/04/416816.html 在本Blog的WebService有一個關于上傳文件的文章!而這個就是所說的winform代碼!!長話短說......直接貼代碼了!有疑問請看http://yaka.cnblogs.com/archive/2006/06/04/416910.htmlwinform同樣的也要引用Mi... 阅读全文
posted @ 2007-03-22 10:56 mbskys 阅读(604) 评论(0) 推荐(0)
使用WSE实现Web Service安全----我的第一篇
摘要:WSE(Web Services Enhancements)是微软为了使开发者通过.NET创建出更强大,更好用的Web Services而推出功能增强插件。现在最新的版本是WSE2.0(SP2).本文描述了如何使用WSE2.0中的安全功能增强部分来实现安全的Web Services。WSE的安全功能增强实现的是WS-Security标准,此标准是WebService自己的安全协议,由IBM, BE... 阅读全文
posted @ 2007-03-22 10:54 mbskys 阅读(193) 评论(0) 推荐(0)
http://www.yegaa.com/search/ShowRss.aspx?id=2848
摘要:http://www.yegaa.com/search/ShowRss.aspx?id=2848 阅读全文
posted @ 2007-03-22 10:12 mbskys 阅读(143) 评论(0) 推荐(0)
一些链接
摘要:http://www.m286.com/Article/183122.html用ASP.NET 2.0设计网络在线投票系统http://onlytiancai.cnblogs.com/archive/2006/02/16/331700.aspx15分钟内快速构建数据访问层 http://www.m286.com/Article/182685.htmlhttp://www.cnblogs.com/o... 阅读全文
posted @ 2007-03-19 14:10 mbskys 阅读(583) 评论(0) 推荐(0)
CMPP SP端 C# 实例
摘要:http://www.yaosansi.com/blog/article.asp?id=922 中国移动通信cmpp2.0短消息网关模拟器v1.10.rar 中国移动通信cmpp3.0短消息网关模拟器v1.10.rar 中国移动通信互联网短信网关接口协议doc版(cmpp2.0).rar 中国移动通信互联网短信网关接口协议doc版(cmpp3.0).rar//附CMPPClient.cs:/*作... 阅读全文
posted @ 2007-03-19 13:14 mbskys 阅读(844) 评论(1) 推荐(0)

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 61 下一页