Fork me on GitHub
摘要: function ajaxFileUpload() { var File_box = document.getElementById('V_file'); var extend = File_box.value.substring(File_box.value.lastIndexOf(".") + 1); if (File_box.value == "" || File_box.value == ... 阅读全文
posted @ 2014-04-21 16:43 乔闻 阅读(661) 评论(0) 推荐(0)
摘要: File_box.value.substring(File_box.value.lastIndexOf(".") + 1); 阅读全文
posted @ 2014-04-21 16:32 乔闻 阅读(514) 评论(0) 推荐(0)
摘要: JavaScript 在浏览器执行的语言 与java的关系 张宇 张雨生 是解释型语言,无需编译就能运行,哪怕有语法错误,没有语法错误还是能运行. 开发环境 VS中JavaScript\JQuery的自动完成功能;VS08需要安装SP1补丁\VS10直接有 入门 Window对象 Window对象代表当前浏览器窗口,使用window对象的属性\方法的时候可以省略window,比如window... 阅读全文
posted @ 2014-04-21 14:03 乔闻 阅读(414) 评论(0) 推荐(0)
摘要: HTTP 1.1状态代码及其含义 状态代码 状态信息 含义 100 Continue 初始的请求已经接受,客户应当继续发送请求的其余部分。(HTTP 1.1新) 101 Switching Protocols 服务器将遵从客户的请求转换到另外一种协议(HTTP 1.1新)200 OK 一切正常,对GET和POST请求的应答文档跟在后面。 201 Created 服务器已经创建了文档,Locati... 阅读全文
posted @ 2014-04-21 14:01 乔闻 阅读(436) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-04-21 13:59 乔闻 阅读(188) 评论(0) 推荐(0)
摘要: 添加用户:用户名:Email:电话: 用户名Email电话删除 阅读全文
posted @ 2014-04-21 13:58 乔闻 阅读(265) 评论(0) 推荐(0)
摘要: $(function () { $(".leftsecoundtitle").css({ "display": "none" }); $("#id1").toggle( function () { $("#id1 + .leftsecoundtitle").slideDown("normal"); $(this).css("background", "#E1E1E1"); //$(".zsfl-... 阅读全文
posted @ 2014-04-21 13:57 乔闻 阅读(166) 评论(0) 推荐(0)
摘要: document.getElementById('Content_Right_id').style.width = document.documentElement.clientWidth - 250 + 'px'; 阅读全文
posted @ 2014-04-21 13:56 乔闻 阅读(7151) 评论(1) 推荐(0)
摘要: 页头ValidateRequest="false" KindEditor.ready(function (K) { window.editor = K.create('#', { uploadJson: '../Scripts/KindEditor/asp.net/upload_json.ashx', fileManagerJson: '../Scripts/KindEditor/asp.... 阅读全文
posted @ 2014-04-21 13:55 乔闻 阅读(224) 评论(0) 推荐(0)
摘要: window.onload = function () { document.getElementById('Select1').onclick = function () { var index = document.getElementById('Select1').selectedIndex; var a = document.getElementById('Text1'); a.setAt... 阅读全文
posted @ 2014-04-21 13:54 乔闻 阅读(327) 评论(0) 推荐(0)
摘要: $('#cc').combobox('setValue','bitem3').combobox('setText','bitem3') 阅读全文
posted @ 2014-04-21 13:53 乔闻 阅读(1158) 评论(0) 推荐(0)
摘要: ValidateRequest="false"引用编辑器要在最上端加入上面的话 阅读全文
posted @ 2014-04-21 13:52 乔闻 阅读(90) 评论(0) 推荐(0)
摘要: Untitled Page 阅读全文
posted @ 2014-04-21 13:51 乔闻 阅读(206) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-04-21 13:50 乔闻 阅读(249) 评论(0) 推荐(0)
摘要: //缩放和布局$(window).resize(function () { $('#BZ_Content').datagrid('resize', { width: getWidth(0.992) })});function getWidth(percent) { if ($("body").width() < 950) { return 950; } else return $("body").... 阅读全文
posted @ 2014-04-21 13:49 乔闻 阅读(283) 评论(0) 推荐(0)
摘要: 算法:先找一层,再递归 阅读全文
posted @ 2014-04-21 13:49 乔闻 阅读(168) 评论(0) 推荐(0)
摘要: function FormButton() { $.ajax({ type: "post", url: "Competition.ashx", data: "name=John&location=Boston", success: function (msg) { alert("Data Saved: " + msg); } });} 阅读全文
posted @ 2014-04-21 13:48 乔闻 阅读(94) 评论(0) 推荐(0)
摘要: select * from (select t.*,rownum no from " + table + " t where scbj=0)where (no>(" + PageNo + "-1)*" + PageSize + " and no(1-1)*20 and no<=(1)*20) update TB_BZ_CONTENT set MC='名称99',LB=1,WZDZ='名称99'... 阅读全文
posted @ 2014-04-21 13:45 乔闻 阅读(154) 评论(0) 推荐(0)
摘要: 读 response.SetCokie(new HttpCookie("Color",TextBox1.Text);写 request.Cookies["color"].Value; 阅读全文
posted @ 2014-04-21 13:43 乔闻 阅读(144) 评论(0) 推荐(0)
摘要: OracleConnection conn = c.GetConnection(); OracleCommand cmd = new OracleCommand(); cmd.Connection = conn; cmd.CommandText = "update t_user set U_ACCOUNT=:U_ACCOUNT,U_NAME=:U_NAME,U_TYPE=:U_TYPE,U_CO... 阅读全文
posted @ 2014-04-21 13:42 乔闻 阅读(273) 评论(0) 推荐(0)
摘要: return System.Text.RegularExpressions.Regex.Replace(HTMLStr, "]*>", ""); 阅读全文
posted @ 2014-04-21 13:41 乔闻 阅读(232) 评论(0) 推荐(0)
摘要: AspNetPager使用方法引入dll 拖入控件 bindList()://数据总数pager.RecordCount = int ;//repeater绑定数据源FlowList.DataSource = datatable;//repeater绑定数据FlowList.DataBind();//页change行为 protected void pager_PageChanging(obje... 阅读全文
posted @ 2014-04-21 13:40 乔闻 阅读(372) 评论(0) 推荐(0)
摘要: ///反转码 mdata[k].MNAME = unescape(mdata[k].MNAME);程家楠 13:51:00 Microsoft.JScript.GlobalObject.escape(dt.Rows[i][mDc].ToString());程家楠 13:51:49 var mdata = eval('(' + msg + ')'); for (var k = 0; k < m... 阅读全文
posted @ 2014-04-21 13:38 乔闻 阅读(277) 评论(0) 推荐(0)
摘要: DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") 阅读全文
posted @ 2014-04-21 13:37 乔闻 阅读(3326) 评论(0) 推荐(0)
摘要: public string GetTreeNav(int ID,int Num) { StringBuilder sb = new StringBuilder(); sb.Append("[{\"id\":1,\"text\":\"根目录\",\"children\":["); sb.Append(GetTreeSon... 阅读全文
posted @ 2014-04-21 13:35 乔闻 阅读(276) 评论(0) 推荐(0)
摘要: window.onload = function () { document.getElementById('text1').onblur = function () { if (isNaN(document.getElementById('text1').value)) { 验证输入的字符是否为数字 al... 阅读全文
posted @ 2014-04-21 13:33 乔闻 阅读(271) 评论(0) 推荐(0)
摘要: string url = "https://quanapi.sinaapp.com/fetion.php?u=" + PhoneNum + "&p=" + PhonePassword + "&to=" + ToNum + "&m=" + ToContent; 阅读全文
posted @ 2014-04-21 13:31 乔闻 阅读(130) 评论(0) 推荐(0)
摘要: select t.*, t.rowid from tb_bz_content t join tb_bz_class c on t.lb=c.id where c.flid=85select * from Article where ArticleClassID in (select ID from Class where ParentID=11) 阅读全文
posted @ 2014-04-21 13:30 乔闻 阅读(143) 评论(0) 推荐(0)
摘要: //缩放和布局 $(window).resize(function () { $('#BZ_Content').datagrid('resize', { width: getWidth(1),height: getheight(1) }) }); 阅读全文
posted @ 2014-04-21 13:25 乔闻 阅读(144) 评论(0) 推荐(0)
摘要: WEB.config: 数据库类:DBTool.cs: public class DBTool { public OracleConnection GetConnection() { string str = ConfigurationManager.ConnectionStrings["conn"].Connectio... 阅读全文
posted @ 2014-04-21 13:22 乔闻 阅读(724) 评论(0) 推荐(1)
摘要: select * from (select t.*,rownum no from " + table + " t where scbj=0)where (no>(" + PageNo + "-1)*" + PageSize + " and no(1-1)*20 and no<=(1)*20)update TB_BZ_CONTENT set MC='名称99',LB=1,WZDZ='名称99',D... 阅读全文
posted @ 2014-04-21 13:20 乔闻 阅读(365) 评论(0) 推荐(0)
摘要: context.Response.ContentType = "text/html"; string fullpath = context.Server.MapPath("hello.htm"); context.Response.Write(fullpath); string content = System.IO.File.ReadAllText(fu... 阅读全文
posted @ 2014-04-21 13:17 乔闻 阅读(597) 评论(0) 推荐(1)
摘要: ///宁采花 8:37:39/// /// 获取数据链接 /// /// public OracleConnection GetConnection() { string str = Configur... 阅读全文
posted @ 2014-04-21 13:09 乔闻 阅读(308) 评论(0) 推荐(0)