会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
linxi_nostop
2013年1月29日
c#发送网页邮件图片有边框问题
摘要: 如果img标签被a标签包含,发送的邮件里图片会有边框。在img标签上添加border=0 即可去掉。
阅读全文
posted @ 2013-01-29 18:37 linxi_nostop
阅读(199)
评论(0)
推荐(0)
2013年1月20日
c# js html 数据库 字符长度
摘要: c# js html 和数据库中 字符长度 汉字和英文 是一样的要获得js中字符实际长度var jmz = {};jmz.GetLength = function(str) { ///<summary>获得字符串实际长度,中文2,英文1</summary> ///<param name="str">要获得长度的字符串</param> var realLength = 0, len = str.length, charCode = -1; for (var i = 0; i < len; i++) { charCode =
阅读全文
posted @ 2013-01-20 18:34 linxi_nostop
阅读(171)
评论(0)
推荐(0)
Replace
摘要: c# replace 是将字符串中符合条件的字符全部替换,不是只替换第一个
阅读全文
posted @ 2013-01-20 18:15 linxi_nostop
阅读(131)
评论(0)
推荐(0)
DBNull
摘要: 1、执行ExecuteScalar时,要进行Null判断,因为对Null进行操作会报:NullReferenceException2、返回DBNull的情况,因为DBNull是用来表示数据库中Null的,所以如果数据中返回null,程序中就是DBNull,如果数据中没有返回值,程序中就是Null3、判断是否DBNull,用Convert.IsDBNull
阅读全文
posted @ 2013-01-20 17:52 linxi_nostop
阅读(121)
评论(0)
推荐(0)
2013年1月16日
后台ajax 方法和页面的周期
摘要: [Ajax.AjaxMethod()] 和 page 不是一个周期,所以不能引用 page 里的变量
阅读全文
posted @ 2013-01-16 16:09 linxi_nostop
阅读(105)
评论(0)
推荐(0)
a标签连接是###时,url出现问题
摘要: 如:<a style="padding-left: 19px; float: left;" class="big noline" onclick="addProgramQus()" href="###"> 添加练习题</a>地址解析成/app/menu/5607/newcontent/new%23%23%23/
阅读全文
posted @ 2013-01-16 15:24 linxi_nostop
阅读(127)
评论(0)
推荐(0)
2013年1月15日
大图滚动浏览
摘要: http://lokeshdhakar.com/projects/lightbox2/使用时发现不支持循环滚动浏览,需要改进
阅读全文
posted @ 2013-01-15 18:22 linxi_nostop
阅读(115)
评论(0)
推荐(0)
2013年1月11日
301 跳转
摘要: Response.Status = "301 Moved Permanently"; Response.AddHeader("Location", "/pingxuan/news/"); Response.End();
阅读全文
posted @ 2013-01-11 14:40 linxi_nostop
阅读(82)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告