上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页
摘要: Encoding utf8 = new UTF8Encoding(true);参数表示是否带签名,但此是否带签名在WriteAllBytes 无效,生成的永远是无签名的。但在WriteAllText中有效。 Encoding utf8 = new UTF8Encoding(true); ////utf8.s = "65001"; //var utf8 = System.Text.Encoding.GetEncoding(65001); var bys = utf8.GetBytes("测试生成页面" + DateTime.Now.ToString().. 阅读全文
posted @ 2014-01-24 15:56 Shikyoh 阅读(825) 评论(0) 推荐(0) 编辑
摘要: 一直老忘记,备份下:var Index=list.indexOf(keyword);list.splice(Index, 1); 阅读全文
posted @ 2014-01-21 10:10 Shikyoh 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1。获取HTMLdocument.getElementById(Iframe的名称).contentWindow.getHTML();在线API http://www.ewebeditor.net/demo/clientapi.asp已经很详细了。 阅读全文
posted @ 2014-01-03 11:20 Shikyoh 阅读(258) 评论(0) 推荐(0) 编辑
摘要: private ArrayList GetSeparateSubString(string mOrigianlString, int subStringCharNumber) { ArrayList resultList = new ArrayList(); string tempStr = mOrigianlString; int charNumber = subStringCharNumber; int totalCount = 0; string mS... 阅读全文
posted @ 2013-12-27 11:22 Shikyoh 阅读(369) 评论(0) 推荐(0) 编辑
摘要: String.Format("{0} world!","hello") //将输出 hello world!,没有问题,但是只要在第一个参数的任意位置加上一个大括号:String.Format("{0} wo{rld!","hello") //就会产生一个异常,异常信息是:Input string was not in a correct format.//解决办法:String.Format("{0} wo{{rld!","hello")//orString.Format( 阅读全文
posted @ 2013-12-18 11:48 Shikyoh 阅读(3157) 评论(0) 推荐(1) 编辑
摘要: 后端:页面需继承ICallbackEventHandler protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string strRefrence = string.Empty; strRefrence = Page.ClientScript.GetCallbackEventReference(this, "arg", "ReceiveDataFromServer", "conte... 阅读全文
posted @ 2013-12-18 10:57 Shikyoh 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 我写的服务器控件(未完,模型如此)using System;using System.Collections.Generic;using System.Collections.Specialized;using System.ComponentModel;using System.Linq;using System.Resources;using System.Text;using System.Threading.Tasks;using System.Web;using System.Web.UI;using System.Web.UI.HtmlControls;using System.W 阅读全文
posted @ 2013-12-17 17:21 Shikyoh 阅读(836) 评论(0) 推荐(0) 编辑
摘要: (function () { alert("222"); })();JS匿名方法。DecColorPicker.Properties.Resources.colorPicker);引用Dll中资源。(通过属性资源添加) 阅读全文
posted @ 2013-12-17 11:59 Shikyoh 阅读(156) 评论(0) 推荐(0) 编辑
摘要: public IEnumerable Search(string keyword, string[] fieldNames, int pageSize, int pageIndex) { if (fieldNames.Length == 0) { return null; } // 计算开始的索引 int start = pageSize * (pageIndex - 1); // 需要的记录数 ... 阅读全文
posted @ 2013-12-16 18:08 Shikyoh 阅读(327) 评论(0) 推荐(0) 编辑
摘要: //call function A() { name = "abc"; this.ShowName = function (val) { alert(name + "," + val); } } function B() { name = "def"; } var a = new A(); var b = new B(); a.ShowName.call(b, "123"... 阅读全文
posted @ 2013-12-09 12:18 Shikyoh 阅读(2546) 评论(3) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页