晨风

-------------------- 业精于勤,荒于嬉;行成于思,毁于随

导航

12 2011 档案

摘要:gridview中模板列TextBox求和赋值给一个TextBox(txt总维修金额)html:<Chsoft:SmartGridView ID="gv设备_外协维修合同明细" runat="server" Width="100%" IsShowIndexColumn="true" DataKeyNames="外协维修合同明细ID" AllowPaging="false" IsShowExcelLinkButton="false" IsSingleP 阅读全文

posted @ 2011-12-28 22:58 shenyixin 阅读(1357) 评论(0) 推荐(0) 编辑

摘要:GridView添加模板列<asp:TemplateField> <ItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" /> </ItemTemplate> <HeaderTemplate> <input id="SelectAll" type="checkbox" /> </HeaderTemplate> </as... 阅读全文

posted @ 2011-12-22 21:14 shenyixin 阅读(275) 评论(0) 推荐(0) 编辑

摘要:<asp:GridView ID="grid" runat="server" AutoGenerateColumns="false" GridLines="Horizontal" OnPreRender="grid_PreRender"> <Columns> <asp:TemplateField> <HeaderTemplate> <input type="checkbox" id="chkAll" / 阅读全文

posted @ 2011-12-22 21:08 shenyixin 阅读(632) 评论(0) 推荐(0) 编辑

摘要:--创建链接服务器 exec sp_addlinkedserver '链接服务器名称', '', 'SQLOLEDB', '远程服务器名或ip地址' exec sp_addlinkedsrvlogin '链接服务器名称', 'false' ,null, '需要链接服务器用户名', '密码' sp_addlinkedserver[ @server= ] 'server'[ , [ @srvproduct= ] 'product_name' 阅读全文

posted @ 2011-12-20 17:05 shenyixin 编辑

摘要:有时需要让图片或其它html元素,当鼠标放上去时显示为手型,可以把下面的任一代码放在元素中就可以:style="cursor:hand"style="cursor:pointer" 支持 IE 或 其它浏览器 阅读全文

posted @ 2011-12-16 21:28 shenyixin 阅读(33083) 评论(0) 推荐(0) 编辑

摘要:javascript中存在几种对URL字符串进行编码的方法:escape(),encodeURI(),以及encodeURIComponent()。这几种编码所起的作用各不相同。escape() 方法:采用ISO Latin字符集对指定的字符串进行编码。所有的空格符、标点符号、特殊字符以及其他非ASCII字符都将被转化成%xx格式的字符编码(xx等于该字符在字符集表里面的编码的16进制数字)。比如,空格符对应的编码是%20。不会被此方法编码的字符: @ * / +encodeURI() 方法:把URI字符串采用UTF-8编码格式转化成escape格式的字符串。不会被此方法编码的字符:! @ # 阅读全文

posted @ 2011-12-16 20:32 shenyixin 阅读(272) 评论(0) 推荐(0) 编辑

摘要:在用easyui控件的时候常用到他能解析的 接送数据,我们可以通过c#将我们从数据库中得到datatable转换成那样的格式,datagrid的好转换,简单的循环拼串就可以,不过 easyui绑定树的时候的接送数据格式稍有不同,比datagrid和datagridtree得到json数据要稍微复杂一些,我写了性能虽然不是很 好的,但是也能得到想要的数据! /// <summary> /// 根据DataTable生成Json树结构 /// </summary> /// <param name="tabel">数据源</param&g 阅读全文

posted @ 2011-12-14 20:29 shenyixin 阅读(6018) 评论(1) 推荐(2) 编辑

摘要:SQL2000:CREATE PROCEDURE [dbo].[ProcCustomPage] ( @Table_Name varchar(5000), --表名 @Sign_Record varchar(50), --主键 @Filter_Condition varchar(1000), --筛选条件,不带where @Page_Size int, --页大小 @Page_Index int, --页索引 @TaxisField varchar(1000), --排序字段 @Tax... 阅读全文

posted @ 2011-12-14 17:51 shenyixin 阅读(413) 评论(0) 推荐(1) 编辑

摘要:<head runat="server"> <title>无标题页</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#left").click(function(){ var movevalue 阅读全文

posted @ 2011-12-06 16:54 shenyixin 阅读(3234) 评论(0) 推荐(0) 编辑

摘要:using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication1 {public partial class SelectFolder: Form {public SelectFolder() { InitializeComponent(); }private void btnSelectPath_Cl... 阅读全文

posted @ 2011-12-01 08:42 shenyixin 阅读(10005) 评论(0) 推荐(1) 编辑