李晓亮的博客

导航

[置顶] jquery向.ashx文件post中文乱码问题的解决

摘要: 1.我的环境:vs2005,未装SP1补丁,不能创建Web应用程序,只能创建网站;jquery版本1.5.12.web.config中的相关配置<globalizationrequestEncoding="gb2312"responseEncoding="gb2312"/>3.jquery的Post数据的写法jquery Code $(document).ready(function(){$("#btnSend").click(function(){$.ajax({type:"POST",url:&qu 阅读全文

posted @ 2011-03-25 21:55 LeeXiaoLiang 阅读(1292) 评论(0) 推荐(0) 编辑

2011年7月12日

自己写的一个javascript下拉列表类

摘要: 最近用javacript写了一个模拟下拉列表的类DivUlLiList.js //类名:DivUlLiList//作者:李晓亮//公司:上海兴侯科技//版本:V0.5//注意事项://1)在window.onload事件外进行对象声明//2)在window.onload事件中进行对象构建//3)附加控件仅支持文本框functionListItem(itemText,itemValue){this.itemText=itemText;this.itemValue=itemValue;}functionDivUlLiList(){//items属性this.items=newArray();//页 阅读全文

posted @ 2011-07-12 00:43 LeeXiaoLiang 阅读(1242) 评论(2) 推荐(0) 编辑

2011年4月1日

jquery1.5.1根据元素ID获取元素对象

摘要: 尽管听说jquery的大名几年了,但是一直没有使用过。这两天想在项目中使用被一些小细节折腾的够呛,看来jquery没有传说中的那么好学。在jquery1.5.1根据ID来获取对象返回的是对应数组,想不通怪不得使用document.getElementById(""ID名"")可以取到单一的对象,使用$("#ID名")却不行,悲剧呀。View Code <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/ 阅读全文

posted @ 2011-04-01 20:30 LeeXiaoLiang 阅读(681) 评论(0) 推荐(0) 编辑

2010年12月7日

【转】通过在RowDataBound事件中把行索引绑定到控件的CommandArgument,然后在RowCommand事件中取出

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--protectedvoidGridView1_RowCommand(objectsender,GridViewCommandEventArgse){introwIndex=-1;GridViewRowrow=null;switch(e.CommandName){case"Command1"://模板列//对于模板列内的按钮,我们需要显示绑定行索引到按钮的CommandArgument属性//以获取 阅读全文

posted @ 2010-12-07 01:00 LeeXiaoLiang 阅读(294) 评论(0) 推荐(0) 编辑

【转】GridView的RowCommand事件中取得行索引

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- protectedvoidGridView1_RowDataBound(objectsender,GridViewRowEventArgse) {if(e.Row.RowType==DataControlRowType.DataRow)//如果是为数据行{ImageButtonimgbtnup=(ImageButton)e.Row.Cells[1].FindControl("btnMoveUp" 阅读全文

posted @ 2010-12-07 00:45 LeeXiaoLiang 阅读(203) 评论(0) 推荐(0) 编辑

2010年12月4日

【转】GridView 实现服务器端和客户端全选的两种方法

摘要: 代码很简单,这里就不累述了。看代码如下:例子C# GridView 实现服务器端和客户端全选的两种方法 全选 阅读全文

posted @ 2010-12-04 20:17 LeeXiaoLiang 阅读(170) 评论(0) 推荐(0) 编辑

ASP.NET之GridView数据绑定

摘要: 1.模板列的绑定(1)在前台页面绑定 <asp:TemplateField> <ItemTemplate> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("数据库字段")%'></asp:TextBox> </ItemTemplate> </asp:Temp... 阅读全文

posted @ 2010-12-04 01:15 LeeXiaoLiang 阅读(427) 评论(0) 推荐(0) 编辑

2010年8月19日

希尔排序的C语言实现(2)

摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<stdio.h>#include<stdlib.h>voidShellSort(inta[],intIndex);voidPrintArray(constc... 阅读全文

posted @ 2010-08-19 17:02 LeeXiaoLiang 阅读(577) 评论(0) 推荐(0) 编辑

希尔排序的C语言实现(1)

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<stdio.h>#include<stdlib.h>intinitialStep(intsize);voidsort(intarray[],intfrom,i... 阅读全文

posted @ 2010-08-19 10:37 LeeXiaoLiang 阅读(709) 评论(0) 推荐(0) 编辑

2010年8月17日

简单插入排序的C语言实现

摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<stdio.h>#include<stdlib.h>voidPrintHeap(constchar*strMsg,intarray[],intnLength... 阅读全文

posted @ 2010-08-17 15:29 LeeXiaoLiang 阅读(1271) 评论(0) 推荐(0) 编辑