随笔分类 -  个人总结

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
总结问题,编程实现。
摘要:XmlDocument.Load(url) 的使用 远程: string path = @"http://localhost:8080/Source/XMLConfig.xml";//从http远程加载xml文档XmlDocument doc = new XmlDocument(); doc.Loa 阅读全文
posted @ 2019-01-04 14:08 龙骑科技 阅读(851) 评论(0) 推荐(0) 编辑
摘要:windows服务下无法启动外部程序 做一个windows服务监听服务,涉及到windows服务启动外部程序的一个过程,但是调试测试发现,无法简单的用process.start()这种方法, 原因是在vista和win7这样的系统下,服务是运行在session 0,而基本上应用是运行在session 阅读全文
posted @ 2018-11-21 00:12 龙骑科技 阅读(2873) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 启动服务监听的ip和端口的主线程 /// </summary> /// <param name="tunnelPort"></param> public void StartService(int tunnelPort) { Port = tunnelPort; 阅读全文
posted @ 2018-11-16 15:53 龙骑科技 阅读(2123) 评论(0) 推荐(0) 编辑
摘要:1、创建WindowsService,如下代码 using System;using System.Net;using System.Net.Sockets;using System.ServiceProcess;using System.Text;using System.Threading; n 阅读全文
posted @ 2018-11-16 12:39 龙骑科技 阅读(1029) 评论(0) 推荐(0) 编辑
摘要:Socket通讯案例 #region 服务端 //int port = 1234; //string host = "127.0.0.1"; //IPAddress ip = IPAddress.Parse(host); //IPEndPoint ipe = new IPEndPoint(ip, p 阅读全文
posted @ 2018-11-16 11:33 龙骑科技 阅读(385) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 判断ftp上是否有指定的文件目录,没有创建 /// </summary> /// <param name="ftpPath">指定路径</param> public void FtpDirectoryAndFile(string ftpPath) { int st 阅读全文
posted @ 2018-11-15 18:18 龙骑科技 阅读(4363) 评论(0) 推荐(0) 编辑
摘要:第一步:新建Webservice接口 主文件方法 using System;using System.Collections.Generic;using System.Web;using System.Web.Services; namespace TestWebApplication{ /// < 阅读全文
posted @ 2018-11-14 18:17 龙骑科技 阅读(1009) 评论(0) 推荐(0) 编辑
摘要:今天动手写Ajax时遇到的问题:按照下面的顺序来写Ajax,功能是alert出txt文档的内容,在Chrome下可以执行onreadystatechange中的事件,在IE11及以下、FF就不能执行onreadystatechange中的代码。 ajax:1.创建Ajax对象 ——new XMLHt 阅读全文
posted @ 2018-11-14 10:59 龙骑科技 阅读(2252) 评论(0) 推荐(0) 编辑
摘要:XMLHttpRequest 是 AJAX 的基础。 XMLHttpRequest 对象所有现代浏览器均支持 XMLHttpRequest 对象(IE5 和 IE6 使用 ActiveXObject)。 XMLHttpRequest 用于在后台与服务器交换数据。这意味着可以在不重新加载整个网页的情况 阅读全文
posted @ 2018-11-14 10:58 龙骑科技 阅读(167) 评论(0) 推荐(0) 编辑
摘要:js调用ajax案例 测试地址:http://www.w3school.com.cn/tiy/t.asp?f=ajax_get 嵌入下面代码,点击提交,再点击请求数据。就可以看到结果了。 <html> <head> <script type="text/javascript"> function l 阅读全文
posted @ 2018-11-14 00:03 龙骑科技 阅读(2881) 评论(0) 推荐(0) 编辑
摘要:1、首先设置通过域访问数据源 设置通过域访问数据源 2、javascript脚本ajax使用本地服务登录(评价,人证的类似)接口 <html> <head> <script type="text/javascript"> function loadXMLDoc() { var xmlhttp; if 阅读全文
posted @ 2018-11-13 15:44 龙骑科技 阅读(1025) 评论(0) 推荐(0) 编辑
摘要:Net 4.5 WebSocket在Windows 8, Windows 10, Windows Server 2012可以,但是在Windows 7, 就会报错。 错误1、“一个文件正在被访问,当前无法使用该文件” 错误2、“参数无效” 错误3、throws a PlatformNotSuppor 阅读全文
posted @ 2018-11-13 15:21 龙骑科技 阅读(1656) 评论(1) 推荐(1) 编辑
摘要:.Net 4.5 WebSocket Server Running on Windows 7? Net 4.5 WebSocket Server 可以运行在 Windows 7,但是Net 4.5的 ClientWebSocket 不支持 Windows 7,只支持 Windows 8 and Se 阅读全文
posted @ 2018-11-13 15:10 龙骑科技 阅读(1336) 评论(0) 推荐(0) 编辑
摘要:定义类中的异步方法 using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net.WebSockets;using System.Text;using System.T 阅读全文
posted @ 2018-11-02 22:20 龙骑科技 阅读(1334) 评论(0) 推荐(0) 编辑
摘要:第一种方式 // 服务端: //var listener = new HttpListener(); // listener.Prefixes.Add("http://*:8080/"); //listener.Start(); //var context = await listener.GetC 阅读全文
posted @ 2018-11-01 10:26 龙骑科技 阅读(6653) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Net;using System.Net.Sockets;using System.Text;using System.Threading;using System.Net.WebSockets;using System.IO; namespace 阅读全文
posted @ 2018-11-01 10:17 龙骑科技 阅读(766) 评论(0) 推荐(0) 编辑
摘要:1、首先在本地机器上创建一个用户!这些用户是用来登录到FTP的!我的电脑右键->管理->本地用户和组->用户->“右键”新建用户->输入用户名和密码再点创建就行了! 2、其次是在D盘新建文件夹“FTP上传”和“FTP下载”两个文件夹!并在每个文件夹里放不同的文件,以便区分! 3、 之后是安装IIS组 阅读全文
posted @ 2018-10-31 13:59 龙骑科技 阅读(12460) 评论(0) 推荐(0) 编辑
摘要:打印设置主要包括方向设置、缩放、纸张设置、页边距等。NPOI 1.2支持大部分打印属性,能够让你轻松满足客户的打印需要。 方向设置首先是方向设置,Excel支持两种页面方向,即纵向和横向。 在NPOI中如何设置呢?你可以通过HSSFSheet.PrintSetup.Landscape来设置,Land 阅读全文
posted @ 2018-10-22 12:32 龙骑科技 阅读(1644) 评论(0) 推荐(0) 编辑
摘要:首先要引用NPOI动态库和Microsoft.Office.Interop.excel.dll (Microsoft.Office.Interop.excel.dll 最好使用使用NuGet下载 ,或者使用网上下载,网上下载以后解压文件,把Microsoft.Office.Interop.excel 阅读全文
posted @ 2018-10-19 13:48 龙骑科技 阅读(4107) 评论(0) 推荐(0) 编辑
摘要:首先要引用NPOI动态库和Microsoft.Office.Interop.excel.dll (Microsoft.Office.Interop.excel.dll 下载链接 ,下载以后解压文件,把Microsoft.Office.Interop.excel.dll拷贝到项目下,添加引用。NPOI 阅读全文
posted @ 2018-10-17 11:25 龙骑科技 阅读(1587) 评论(0) 推荐(0) 编辑

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页