摘要: List
的Sort,Find,Exists等的使用阅读全文
posted @ 2011-03-29 21:19 *黄毅* 阅读(234) 评论(2)
编辑
posted @ 2011-03-25 21:19 *黄毅* 阅读(176) 评论(0)
编辑
使用Telerik控件时出现Failed to create designer 的解决方法

以下三种方法任选其一。(我用了第三种,前两种未测试)
- Bin-deploy the design-time assembly
This solution would work only in case you have not installed RadControls for ASP.NET Ajax using the provided setup program. Assemblies installed by a setup program cannot be removed from GAC until the program is uninstalled. This approach is suitable when using only the dll-s from a zip (be that a hotfix or latest internal build).
- Remove Telerik.Web.Design.dll from the GAC (this would fail if you have installed RadCotnrols for ASP.NET Ajax via the installer)
- Copy Telerik.Web.Design.dll to your web site or application and make sure the dll is copied to the bin folder
- Restart Visual Studio
- GAC-deploy the control library assembly
- Add Telerik.Web.UI.dll in the GAC
- Remove Telerik.Web.UI.dll from your bin folder
- Make sure you have the following line in your web.config:
<add assembly="Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
- Restart Visual Studio
- Copy Telerik.Web.UI.dll to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies and restart Visual Studio.
来源:http://blogs.telerik.com/atanaskorchev/posts/09-03-06/meet_telerik_web_design_dll.aspx
posted @ 2010-12-26 22:19 *黄毅* 阅读(206) 评论(0)
编辑
GridView 序号
(正序)
方法一(不带分页):
<asp:TemplateField HeaderText="序号">
<ItemTemplate>
<%#(Container as GridViewRow).RowIndex + 1%>
</ItemTemplate>
</asp:TemplateField>
方法二(带分页):
<asp:TemplateField HeaderText="序号">
<ItemTemplate>
<%# this.GridView1.PageIndex * this.GridView1.PageSize + Container.DataItemIndex + 1%>
</ItemTemplate>
</asp:TemplateField>
(倒序)
方法一(不带分页):
<asp:TemplateField HeaderStyle-Width="30px" HeaderText="序号" ItemStyle-HorizontalAlign="center">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%#((Container as GridViewRow).DataItem as System.Data.DataRowView).Row.Table.Rows.Count - (Container as GridViewRow).RowIndex%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
方法二(带分页):
<asp:TemplateField HeaderStyle-Width="30px" HeaderText="序号" ItemStyle-HorizontalAlign="center">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%#((Container as GridViewRow).DataItem as System.Data.DataRowView).Row.Table.Rows.Count - (Container as GridViewRow).RowIndex - (this.gviewList.PageIndex) * this.gviewList.PageSize%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/kingboy2008/archive/2010/02/26/5328935.aspx
posted @ 2010-03-15 18:18 *黄毅* 阅读(129) 评论(0)
编辑
摘要: Telerik Asp.net 控件使用笔记
阅读全文
posted @ 2009-06-25 11:12 *黄毅* 阅读(447) 评论(0)
编辑
摘要: 通过自定义ComboBox,扩展了两个新的属性SelectedValuePath和SelectedValue,以便像Asp.NET中DropDownList那样容易的控制Selected。
阅读全文
posted @ 2009-01-06 11:24 *黄毅* 阅读(4320) 评论(7)
编辑
摘要: 主要介绍了如何对 Silverlight 中 DataGrid 的 Header 进行扩展,用自定义控件来代贴 DataGrid 原有的 Header ,并实现了 排序 和 数据过滤 功能。
阅读全文
posted @ 2008-12-29 14:12 *黄毅* 阅读(3884) 评论(6)
编辑
摘要: 修正了上篇中的关于排序标识的处理方式。
阅读全文
posted @ 2008-12-26 11:11 *黄毅* 阅读(870) 评论(3)
编辑
摘要: 本文介绍了通过如何在Silverlight中实现服务器端的数据分页和排序
阅读全文
posted @ 2008-12-25 14:35 *黄毅* 阅读(5052) 评论(14)
编辑
摘要: 介绍了在Silverlight的DataGrid中如何响应MouseWheel并滚动数据。
阅读全文
posted @ 2008-12-23 22:19 *黄毅* 阅读(2288) 评论(3)
编辑