2011-12-31 09:47 by 鹏雕, 22 visits, 网摘, 收藏, 编辑
摘要:出生日期算年龄:select floor((sysdate-出生日期)/365) from 表两列合并:select to_char(经度)||' '||to_char(纬度) as GPS定位 from 表如果为空置为0: select nvl(家畜总数,0) from 表
阅读全文
2011-12-07 10:24 by 鹏雕, 26 visits, 网摘, 收藏, 编辑
摘要:<tr> <tdclass="caption td_caption"> 免疫程序:</td> <tdclass="txtbox td_textbox"> <asp:DropDownListID="ddlMYCX"runat="server"Width="200px"AutoPostBack="true"AppendDataBoundItems="true"OnSelectedIndexChanged=&
阅读全文
2011-12-06 09:42 by 鹏雕, 49 visits, 网摘, 收藏, 编辑
摘要:法一:<asp:BoundField DataField="是否启用" HeaderText="是否启用"> <ItemStyle Width="15%" HorizontalAlign="Center" /></asp:BoundField> if (ds != null && ds.Tables[0].Rows.Count > 0) // 进行数据绑定前的示意转换 { for (int i = 0; i < ds.Tables[0].Rows.Co
阅读全文
2011-11-09 22:19 by 鹏雕, 25 visits, 网摘, 收藏, 编辑
摘要://回车切换焦点方法,只需在界面设置控件的TabIndex即可,以后用protectedoverrideboolProcessCmdKey(refMessagemsg,KeyskeyData) {if((!(ActiveControlisButton)) && (keyData ==Keys.Up || keyData ==Keys.Down || keyData ==Keys.Enter)) {if(keyData ==Keys.Enter) { System.Windows.Forms.SendKeys.Send("{TAB}");returntrue;
阅读全文
2011-11-03 23:09 by 鹏雕, 17 visits, 网摘, 收藏, 编辑
摘要:1. 如何创建一个可改变大小没有标题栏的窗体?(How to create a form with resizing borders and no title bar?)form1.Text = string. Empty;form1.ControlBox = false;2. 如何在.NET的Windows窗体上启用XP主题集?(How to use XP Themes with Windows Forms using the .NET?)确认你的控件中FlatStyle属性已经修改为System,再修改Main方法。static void Main(){Application.Enable
阅读全文
2011-11-01 20:05 by 鹏雕, 23 visits, 网摘, 收藏, 编辑
摘要:CreatePROCEDURE[dbo].[JiuChanPinLiuTongJiLuProcess]( @JiuChanPinIddecimal(18,0))ASselect*from(selecttop100PercentUpdateDate日期,'从'+ShouHuoName+'到'+GouHuoNameas流通方式fromVWJiuChanPinLiuTongJiLuwhereBCLiuTongLeiXingId=1andJiuChanPinId=@JiuChanPinIdorderbyUpdateDate)munionallselect*from(se
阅读全文
2011-11-01 19:20 by 鹏雕, 24 visits, 网摘, 收藏, 编辑
摘要:当GridView绑定的数据源为Null或查询绑定的DataSet等为空时GridView显示没有数据的提示有如下几种方式一是用GridView的EmptyDataText-------------------------------<asp:GridView ID="gv_Info" runat="server" CssClass="GridView" EditRowStyle-HorizontalAlign="center" AutoGenerateColumns="True" All
阅读全文
2011-10-12 10:56 by 鹏雕, 7 visits, 网摘, 收藏, 编辑
摘要:MSDTC(分布式交易协调器),协调跨多个数据库、消息队列、文件系统等资源管理器的事务。该服务的进程名为Msdtc.exe,该进程调用系统Microsoft Personal Web Server和Microsoft SQL Server。该服务用于管理多个服务器 .位置:控制面板--管理工具--服务--Distributed Transaction Coordinator依存关系:Remote Procedure Call(RPC)和Security Accounts Manager 建议:一般家用计算机涉及不到,除非你启用Message Queuing服务,可以停止。解决办法: 1. 在w
阅读全文
2011-10-10 14:56 by 鹏雕, 23 visits, 网摘, 收藏, 编辑
摘要:首先,第一步,创建一个类MyTemplate.cspublic class MyTemplate:ITemplate{ private string strColumnName; private DataControlRowType dcrtColumnType; public MyTemplate() { // // TODO: 在此处添加构造函数逻辑 // } /// <summary> /// 动态添加模版列 /// </summary> /// <param name="strColumnName">列名</param>
阅读全文