易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net 上传文件

  if (FileUpload1.HasFile)
            {
                string fileContentType = FileUpload1.PostedFile.ContentType;
                //限制上传的类型 txt/jpg/word
                if (fileContentType == "text/plain"||"image/jpg"||"application/msword"||"image/gif" )
                {
                    string name = FileUpload1.PostedFile.FileName; // 客户端文件路径
                    FileInfo file = new FileInfo(name);
                    string fileName = file.Name; // 文件名称
                    string webFilePath = Server.MapPath("~/upload/" + fileName); // 服务器端文件路径
                    zsInfo.Word = webFilePath;
                    if (!File.Exists(webFilePath))
                    {
                        try
                  


相关文档:

asp.net 利用WMI实现关机重启

我这是拿来别人用的,为了方便以后自己看吧,看对大家有帮忙吗
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace AppBLL
{
public class ShutDown
{
[StructLayout(LayoutKind.Sequential, Pack = 1)] ......

Flex 与 Asp.Net 通过 Remoting 方式进行通讯

Flex
与 Asp.Net 通过 Remoting 方式进行通讯
Flex 与 Asp.Net 通过 Remoting 方式进行通讯 (一)http://hi.baidu.com/tsengyuen/blog/item/644e98a3353f7287471064ef.html
Flex 与 Asp.Net 通过 Remoting 方式进行通讯 (二)http://hi.baidu.com/tsengyuen/blog/item/af02730d58d6d7266059f3e8.html
Flex 与 Asp.Net 通 ......

asp.net 上传控件的使用

注:asp.net默认允许上传为4096,即4MB
如果想要传更大的,要在web.config 的system.web节点里加上
 <httpRuntime maxRequestLength="10240" executionTimeout="3"/>这就可以最大允许传10MB了
第一种
1. 检查文件的扩展名:
2.
3. //判断是否有上传文件
4. if (Fil ......

asp.net 分页

///方法
 public static List<FeesItemInfo> selectAll()
        {
            List<FeesItemInfo> list = new List<FeesItemInfo>();
         & ......

ASP.NET开发经验积累

在开发过程中,通过摸索查资料,收集了一些值得提出来的经验:
1、 相对于原来的for语句foreach具有更好的执行效率,foreach的平均花费时间只有for的30%。通过测试结果在for和foreach都可以使用的情况下,我们推荐使用效率更高的foreach。另外,用for写入数据时间大约是读取数据时间的10倍左右;
2、 在asp.net程序中, ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号