上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: js代码: $.ajax({ type: "post", url: "AaxClassKPfm.aspx/SaveGCJ",//AaxClassKPfm.aspx为请求页面,SaveGCJ为请求页面方法名 contentType: "application/json; charset=utf-8", 阅读全文
posted @ 2020-06-05 11:19 幸运(● ̄(エ) ̄●) 阅读(707) 评论(0) 推荐(1) 编辑
摘要: C# 使用Dev控件为gridView添加复选框,实现多选和单选,代码如下: 1 this.gridControl1.DataSource = dtss; 2 gridView1.OptionsSelection.MultiSelect = true; 3 4 gridView1.OptionsSe 阅读全文
posted @ 2020-06-04 18:22 幸运(● ̄(エ) ̄●) 阅读(4187) 评论(0) 推荐(1) 编辑
摘要: 使用LINQ查询int型数组 static void Main(){ int[] number={2,12,5,15};//数据源 IEnumberable<int> lownums= //定义并存储查询 from n in number where n < 10 select n; foreach 阅读全文
posted @ 2018-12-26 17:16 幸运(● ̄(エ) ̄●) 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Camstar客制化开发做查询操作,对于Sql语句的保存地方有三种(Designer中保存在Query、Portal中保存在UserQuery、直接写在代码中) 其中Portal中UserQuery容易被人改动,所以一般情况下不用,直接写在代码中对于代码的“美观”上看着一大片红色代码不是很美观,所以 阅读全文
posted @ 2018-11-27 15:55 幸运(● ̄(エ) ̄●) 阅读(1145) 评论(3) 推荐(0) 编辑
摘要: 自动登录主要是实现了第一次登录后将用户账号和密码存放在Cookie中,在第二次登录时获取Cookie中的值实现自动登录 创建个登录页面:(添加一个CheckBox控件控制是否需要自动登录) 登录页面后台代码实现: 1 protected void Page_Load(object sender, E 阅读全文
posted @ 2018-11-16 17:23 幸运(● ̄(エ) ̄●) 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: 当页面进行回发时,如点击按钮,事件会按一下顺序执行: 1. OnPreInit2. OnInit3. OnInitComplete4. OnPreLoad5. Page_Load6. OnLoad7. Button_Click8. OnLoadComplete9. OnPreRender 这里只做P 阅读全文
posted @ 2018-11-14 16:47 幸运(● ̄(エ) ̄●) 阅读(375) 评论(0) 推荐(0) 编辑
摘要: UserQuery中添加SQL语句 cs代码 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using Camstar.WebPortal.WebPortl 阅读全文
posted @ 2018-11-07 16:52 幸运(● ̄(エ) ̄●) 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 设计vp界面 查询数据库显示数据 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using Camstar.WebPortal.FormsFramework 阅读全文
posted @ 2018-11-07 16:43 幸运(● ̄(エ) ̄●) 阅读(547) 评论(0) 推荐(0) 编辑
摘要: Grid:网格。可以自定义行和列并通过行列的数量、行高和行宽来调整控件的布局,类似于HTML中的Table。 StackPanel:栈式模板。可将包含的元素在竖直或水平方向上排成一条直线,当移除一个元素后,后面的元素会自动向前移动以填充空缺。 Canvas:画布。内部元素可以使用以像素为单位的绝对坐 阅读全文
posted @ 2018-10-15 13:53 幸运(● ̄(エ) ̄●) 阅读(1177) 评论(0) 推荐(0) 编辑
摘要: //快速排序递归算法 1 static void Main(string[] args) 2 { 3 int[] arr = { 24,3,5,65,9}; 4 Sort(arr); 5 for (int i = 0; i < arr.Length;i++ ) { 6 Console.WriteLi 阅读全文
posted @ 2018-10-12 16:21 幸运(● ̄(エ) ̄●) 阅读(707) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页
Document