摘要: Ext.create("Ext.Button", { text: "click", //文字 renderTo: Ext.getBody(), //页面展示 height: 40, width: 100, styl... 阅读全文
posted @ 2012-02-21 12:02 高捍得 阅读(347) 评论(0) 推荐(0) 编辑
摘要: Grid功能: 展示json数据,编辑行,排序,分页.分页功能要根据请求URL的参数,在服务器端返回相应JSON,此处服务端未写.(url参数,可通过firebug控制台查看)1,首先引用 <script src="ext-4.0.0/ext-all.js" type="text/javascript"></script> //ExtJS文件 <link href="ext-4.0.0/resources/css/ext-all.css" rel="stylesheet" type=& 阅读全文
posted @ 2012-02-21 11:27 高捍得 阅读(1613) 评论(0) 推荐(0) 编辑
摘要: 二进制序列化 首先引用 using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.IO; 自定义类: [Serializable] public class person { ... 阅读全文
posted @ 2012-02-03 15:42 高捍得 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 使用I/O流操作文本文件 string p = Server.MapPath("") + "//1.txt"; //操作文件的路径 using (StreamWriter sw = new StreamWriter(p, true)) //写入 { for (int i = 0; i < 10; i++) { ... 阅读全文
posted @ 2012-01-31 16:38 高捍得 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 添加数据 DataClasses1DataContext datacontent; string str = ConfigurationManager.AppSettings["SQLString"].ToString(); datacontent = new DataClasses1DataContext(str);... 阅读全文
posted @ 2012-01-31 10:25 高捍得 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 简单查询 1.首先 ,新建一个LinqToSql类文件.把需要查询的表,拖入类文件的设计界面.接下来就可以使用它了. 2.页面拖一个GridView <asp:GridView ID="GridView1" runat="server"> </asp:GridView> 表信息: 3.后台代码 //实例化Linq链接... 阅读全文
posted @ 2012-01-30 17:44 高捍得 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 创建隐形局部变量查询数组并输出 string[] w = { "a", "b", "c" }; var word = from words in w select new { Upper = words.ToUpper(), Lower = words.ToLower() }; foreach (var item in word) { Resp... 阅读全文
posted @ 2012-01-30 16:28 高捍得 阅读(279) 评论(0) 推荐(0) 编辑
摘要: ArrayList使用 新建一个控制台应用程序 static void Main(string[] args) { int[] arr = { 1, 2, 3, 4, 5, 6 }; ArrayList arrlist = new ArrayList(arr);//初始化 ... 阅读全文
posted @ 2012-01-08 09:15 高捍得 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 首先引用JQ文件,下面是所有代码; 主页面代码: 数据库数据: 脚本文件: function addli(object) { var text = object.innerText; var url = object.id; var html = "<div class=\"r_right_nav_div\" ondblclick=\... 阅读全文
posted @ 2012-01-05 13:39 高捍得 阅读(1154) 评论(0) 推荐(0) 编辑
摘要: //跟随鼠标 $(window).mousemove(function () { // document.createElement("<div id=dsa></div>"); $("#id").offset({ left: event.x, top: event.y }); }) //编辑... 阅读全文
posted @ 2011-12-29 17:59 高捍得 阅读(159) 评论(0) 推荐(0) 编辑