上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 61 下一页
摘要: 在下面的示例中,DisplayProducts 方法接收一个数据表,其中包含名为 ProductName一个 DataColumn,提取 ProductName 值,然后输出值。 using System;using System.Data;class Program { public void DisplayProducts(DataTable table) { var productNames = from products in table.AsEnumerable() select products.Field("ProductName"); Console.... 阅读全文
posted @ 2014-04-02 14:52 Seaurl 阅读(1367) 评论(4) 推荐(0) 编辑
摘要: C# DataTable 转 List 方法,网上有好多,之前也收集了,感觉这个也不错,重要是自己要领会这里面的代码含义。接不来我就把代码贴出来分享一下,大家觉得如果不好,请留言我,我来改进。using System;using System.Collections.Generic;using System.Data;using System.Reflection;namespace jdrz.HumanIdentify{ public class Helper { /// /// DataTable 转换为List 集合 /// ... 阅读全文
posted @ 2014-04-02 08:46 Seaurl 阅读(5266) 评论(58) 推荐(1) 编辑
摘要: CSS3圆角气泡框,评论对话框 This only needs one HTML element. For example, [text]. But it could be any element you want. The entire appearance is created only with CSS. This only needs one HTML element. For example, [text]. ... 阅读全文
posted @ 2014-03-28 10:07 Seaurl 阅读(455) 评论(0) 推荐(0) 编辑
摘要: WinForm 换行问题 textbox今天碰到一段string在label中能正常换行,但是在textbox中却无法换行的问题。首先考虑是换行符的问题。在网上查了些资料:1、TextBox 中换行符为: "\r\n"。2、Windows 中的换行符(即:Environment.NewLine) 为 "\r\n"3、MessageBox.Show() 的换行符为 "\n"4、Console 的换行符为 "\n"5、换行符还因平台而已,Unix/Linux 平台换行符是 "\n"。6、为保持平台的 阅读全文
posted @ 2014-03-25 15:21 Seaurl 阅读(1786) 评论(0) 推荐(0) 编辑
摘要: 在网上找到的方法:查看这里//-------------------------------------Article.hbm.xml------------------------------------------ //-------------------------------------Lable.hbm.xml------------------------------------------ 分析: 解决的方法很简单:“在多对多中不需要配置任何lazy和casecade,也不需要中间表的关系”。之前,我在Article.hbm.xml文件中添加了la... 阅读全文
posted @ 2014-03-21 16:12 Seaurl 阅读(419) 评论(0) 推荐(0) 编辑
摘要: JS去除html标签 var str = "This is test"; str = str.replace(/].*?>/g,""); alert(str); 原文地址:http://blog.csdn.net/aganar/article/details/6192920C#去除html标签public string RemoveHtmlTag(string Str) { return Regex.Replace(Str, "]*>", " "); } string str=f_ZhengWen.Va 阅读全文
posted @ 2014-03-21 15:10 Seaurl 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 问题是这样的,有两个表:文章(Article)和分类(Lable),这两者之间的关系是多对多关联,如果你用Nhibernate来保存数据的话非常的好操作,新建Article,然后把Lable值赋值给Article的Lables(这个是在Article类里面有定义的),像这样:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MyMvc4Project.Models{ /// /// t_Article:实体类(属性说明自动提取数据库字段的描述信息)... 阅读全文
posted @ 2014-03-21 10:40 Seaurl 阅读(1449) 评论(8) 推荐(0) 编辑
摘要: 我还是不发表到博客园首页吧,要不然还是要被取消,>_<还是言归正传吧,关于Ext.Ajax.request()方法和FormPanel.getForm().submit()方法返回success()方法的差异, Ext.Ajax.request({ url: '', async: false, success: function (response) { var obj = eval("(" + response.responseText + ")");//方法一 var obj = Ext.JSON.de... 阅读全文
posted @ 2014-03-20 09:35 Seaurl 阅读(1287) 评论(0) 推荐(1) 编辑
摘要: 做项目的时候遇到这个问题,搞了一上午终于解决了,让我们看看是什么问题: buttons: [ { text: '保存', icon: '../../../Images/extjs/disk.png', handler: function () { if (!formPanel.getForm().isValid()) { return; } formPanel.getForm().subm... 阅读全文
posted @ 2014-03-19 14:45 Seaurl 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 最近在做博客项目,后台管理用的是ExtJs4.2.1版本,因为是初学所以在使用的时候也遇到不少的这样或那样的问题,也写了不少这方面的博客,今天要写的博客是关于复选框数据项动态的加载功能,以前也没用过,初次用,不知道怎么动态加载,静态加载很容易,添加itmes就可以了,于是我在网上找找有关这方面的博客,找到一篇,不过遗憾的是,这种方法太糟糕了,不是很方便,于是找到了一个很好的解决方法://点击编辑弹出的formpanel var formPanel = new Ext.FormPanel({ //labelAlign: 'top', bo... 阅读全文
posted @ 2014-03-18 17:34 Seaurl 阅读(2228) 评论(0) 推荐(1) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 61 下一页