随笔分类 -  Asp.net

asp.net中兼容多个版本dll的方式
摘要: 阅读全文
posted @ 2016-04-09 21:52 liujiwei0632 阅读(453) 评论(0) 推荐(0)
Sftp上传下载文件,部分代码取自网络,需要添加DiffieHellman.dll、Org.Mentalis.Security.dll、Tamir.SharpSSH.dll三个dll引用
摘要:using System; using System.Collections; using System.Collections.Generic; using System.IO; using Tamir.SharpSsh.java.io; using Tamir.SharpSsh.jsch; namespace EB.Mall.Core.Utils { public class SFT... 阅读全文
posted @ 2016-04-09 21:36 liujiwei0632 阅读(1636) 评论(0) 推荐(0)
asp.net通过ftp上传文件
摘要:public byte[] FtpDownLoad(string filePath) { try { FtpWebRequest reqFTP = GetFtpWebRequest(new Uri(fptServer + ftpMapPath + filePath), WebRequestMetho... 阅读全文
posted @ 2016-04-09 21:32 liujiwei0632 阅读(247) 评论(0) 推荐(0)
javascript引用汤姆大叔文章
摘要:http://www.cnblogs.com/TomXu/archive/2011/12/15/2288411.html 阅读全文
posted @ 2016-03-29 17:36 liujiwei0632 阅读(193) 评论(0) 推荐(0)
stopPropagation&preventDefault&return false
摘要:因为有父, 子节点同在, 因为有监听事件和浏览器默认动作之分. 使用 JavaScript 时为了达到预期效果经常需要阻止事件和动作执行. 一般我们会用到三种方法, 分别是 stopPropagation(), preventDefault() 和 return false. 它们之间有什么区别, 阅读全文
posted @ 2016-03-29 17:29 liujiwei0632 阅读(149) 评论(0) 推荐(0)
checkbox和radio标签和后面的文字不对齐的问题
摘要:input[type='checkbox']{ vertical-align:-2px; } input[type='radio']{ vertical-align:-6px; } 阅读全文
posted @ 2016-03-29 17:28 liujiwei0632 阅读(547) 评论(0) 推荐(0)
asp.net中的postback方法
摘要:<input type="hidden" value="0" id="__EVENTTARGET" name="__EVENTTARGET" runat="server"/> <input type="hidden" value="0" id="__EVENTARGUMENT" name="__EV 阅读全文
posted @ 2016-03-29 17:28 liujiwei0632 阅读(172) 评论(0) 推荐(0)
javascript小数计算误差问题
摘要:0.1+0.2 == 0.3 //false原来0.1+0.2变成:0.30000000000000004 0.1+0.2 == 0.3 //false原来0.1+0.2变成:0.30000000000000004 //自定义加法运算 functionaddNum (num1, num2) { va 阅读全文
posted @ 2016-03-29 17:27 liujiwei0632 阅读(232) 评论(0) 推荐(0)
javascript拖拽功能
摘要:<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> 阅读全文
posted @ 2016-03-29 17:24 liujiwei0632 阅读(164) 评论(0) 推荐(0)
上传文件的方法
摘要:1.使用file标签,后台获取file对象实现上传 2.使用webservice实现文件上传 3.使用FileReader 4.跨服务器上传文件要么用webservice,要么通过共享一个上传界面,或者共享文件夹,通过共享文件夹时候如果需要指定用户那么需要开启身份模拟功能(<identity imp 阅读全文
posted @ 2016-03-29 17:24 liujiwei0632 阅读(155) 评论(0) 推荐(0)
div上下左右居中
摘要:<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="te 阅读全文
posted @ 2016-03-29 17:23 liujiwei0632 阅读(115) 评论(0) 推荐(0)
删除kookie
摘要:注意不同域名的需要加上domain属性 HttpCookie cookie1 = HttpContext.Current.Request.Cookies["cookie1"]; if(cookie1 != null) { cookie1.Expires = DateTime.Now.AddDays( 阅读全文
posted @ 2016-03-29 17:22 liujiwei0632 阅读(155) 评论(0) 推荐(0)
javascript跨域访问
摘要:1.jsonp requestpage: function jsonpCallback(jsonp) { alert(jsonp.name); } function test() { var ele = document.createElement("script"); ele.src = "Web 阅读全文
posted @ 2016-03-29 17:20 liujiwei0632 阅读(209) 评论(0) 推荐(0)
分页控件
摘要:下面是调用方法: 阅读全文
posted @ 2016-03-25 16:59 liujiwei0632 阅读(133) 评论(0) 推荐(0)