2011年11月9日
摘要: 绑定主要是通过设置静态数据源,然后设置绑定控件的DisplayMemberPath和SelectedValuePath界面代码:View Code xmlns:c="clr-namespace:WPF1" > <Page.Resources> <c:EmPAll x:Key="empAll"></c:EmPAll> <c:AllData x:Key="allData"></c:AllData> </Page.Resources> <Grid> & 阅读全文
posted @ 2011-11-09 09:21 no-code 阅读(1458) 评论(0) 推荐(0) 编辑
  2011年10月25日
摘要: IF EXISTS(SELECT *FROM sysobjects WHERE name='sp_ContestSubmit') DROP PROC sp_ContestSubmitGO-- =============================================-- Author: zqt-- Create date: 2011-11-25-- Desc: 系统管理员批量给未交卷的考生交卷-竞赛-- =============================================Create proc sp_ContestSu... 阅读全文
posted @ 2011-10-25 11:18 no-code 阅读(38440) 评论(1) 推荐(1) 编辑
  2011年9月6日
摘要: View Code 1 StringBuilder sb = new StringBuilder(); 2 if (arrService.Length > 0) 3 { 4 for (int i = 0; i < arrService.Length; i++) 5 { 6 if (string.IsNullOrEmpty(sb.ToString())) 7 { 8 ... 阅读全文
posted @ 2011-09-06 08:44 no-code 阅读(3939) 评论(0) 推荐(0) 编辑
  2011年9月1日
摘要: View Code 1 /// <summary> 2 /// 将datatable转换为json 3 /// </summary> 4 /// <param name="dtb">Dt</param> 5 /// <returns>JSON字符串</returns> 6 public static string Dtb2Json(DataTable dtb) 7 { 8 JavaScriptSerializer jss = new JavaScriptSeriali... 阅读全文
posted @ 2011-09-01 12:04 no-code 阅读(270) 评论(0) 推荐(0) 编辑
摘要: View Code 1 /// <summary> 2 /// 将datatable转换为json 3 /// </summary> 4 /// <param name="dtb">Dt</param> 5 /// <returns>JSON字符串</returns> 6 public static string Dtb2Json(DataTable dtb) 7 { 8 JavaScriptSerializer jss = new JavaScriptSeriali... 阅读全文
posted @ 2011-09-01 12:04 no-code 阅读(24417) 评论(2) 推荐(4) 编辑
  2011年6月22日
摘要: 全屏快捷方式"C:\Program Files\Internet Explorer\IEXPLORE.EXE" -k http://localhost:8888/Login.aspx 阅读全文
posted @ 2011-06-22 22:21 no-code 阅读(437) 评论(0) 推荐(0) 编辑
  2011年4月21日
摘要: 全屏代码: #region 设置全屏 this.WindowState = System.Windows.WindowState.Normal; this.WindowStyle = System.Windows.WindowStyle.None; this.ResizeMode = System.Windows.ResizeMode.NoResize; this.Topmost = true; this.Left = 0.0; this.Top =... 阅读全文
posted @ 2011-04-21 23:12 no-code 阅读(11752) 评论(1) 推荐(2) 编辑
  2011年3月23日
摘要: 在安装的时候出现一个错误提示“安装程序无法复制文件CONVLOG.EX_”,上网找了下资料,说是在运行-中输入”esentutl /p %windir%/security/database/secedit.sdb ” 就可以了 阅读全文
posted @ 2011-03-23 15:27 no-code 阅读(742) 评论(0) 推荐(0) 编辑
  2011年3月10日
摘要: <style type="text/css"> <!-- html { scrollbar-face-color:#f6f6f6; scrollbar-highlight-color:#fff; scrollbar-shadow-color:#eeeeee; scrollbar-3dlight-color:#eeeeee; scrollbar-arrow-color:#000; scrollbar-track-color:#fff; scrollbar-darkshadow-color:#fff; } --> </style> 阅读全文
posted @ 2011-03-10 10:27 no-code 阅读(204) 评论(1) 推荐(0) 编辑
  2011年3月2日
摘要: Math.round(Math.random() * 10000)父窗口弹出子窗口,子窗口选择值后,赋值到父窗口的某个控件上父窗口代码: function fn_GetMarksClassModel() { var url = "SelectMarksClassModel.aspx?temp=" + Math.round(Math.random() * 10000); var val = window.showModalDialog(url, '', "dialogWidth=00px;dialogHeight=400px;status=no;he 阅读全文
posted @ 2011-03-02 14:19 no-code 阅读(10828) 评论(2) 推荐(0) 编辑