用心做好每一件事情!
摘要: http://www.cnblogs.com/allen0118/archive/2012/05/10/2494112.html这边文章里面只是将大致的轮廓组织了一下,现在慢慢来将其完善,本次更新了2点内容,第一就是将权限细化到每一个按钮,因为当时设计的时候每一个窗体上面的菜单都是统一的,所以比较容易控制,开发文档以下代码比较重要,记录了一些全局的东西: 1 public sealed class AllenSingleton 2 { 3 private static volatile AllenSingleton instance; 4 ... 阅读全文
posted @ 2012-09-07 16:51 无 影 阅读(2769) 评论(15) 推荐(0) 编辑
摘要: BluetoothClient Blueclient = new BluetoothClient(); Dictionary<string, BluetoothAddress> deviceAddresses = new Dictionary<string, BluetoothAddress>(); BluetoothRadio BuleRadio = BluetoothRadio.PrimaryRadio; BuleRadio.Mode = RadioMode.Connectable; Blue... 阅读全文
posted @ 2012-08-26 14:01 无 影 阅读(14132) 评论(4) 推荐(0) 编辑
摘要: 之前用模拟器测试过调用远程的WebService,发现总是提示“无法连接到远程服务器”的错误,不管是Windows Mobile6.0 还是6.5都是一样,按照网上的办法,改注册表,修改PDA的配置,安装虚拟网卡,我一一试了一遍,都没有解决,可能是模拟器需要什么特殊的配置吧,晚一点继续摸索一下,现在先使用真机来测试一下。1.首先新建测试的WebService服务,并将其发布在IIS或者服务器上面,我这里做了两个测试,一个是发布到本地IIS里面,一个是发布到服务器上面。以下是我建立的两个测试Web服务。using System;using System.Collections.Generic;u 阅读全文
posted @ 2012-08-21 10:13 无 影 阅读(4655) 评论(1) 推荐(0) 编辑
摘要: C#操作Excel的方式多种多样,以下为个人实践中的一些总结,留个笔记方便以后查看,陆续更新中。。。进入正题:一:将Excel的数据直接导入到SQL数据库中这个需要Excel文件与数据库中的表的字段一致,或者指定每一个字段也行;首先读取Excel里面的内容:string strCon = " Provider = Microsoft.Jet.OLEDB.4.0 ; " + "Data Source =" + this.txtPath.Text + ";Extended Properties=Excel 8.0"; OleDbConne 阅读全文
posted @ 2012-08-16 11:05 无 影 阅读(9690) 评论(21) 推荐(3) 编辑
摘要: C#如何通过NCO3.0来连接SAP并调用SAP中的RFC首先安装NCO3.0,这是SAP针对.Net开发的专用组件,安装完成之后在C:\Program Files\SAP\SAP_DotNetConnector3_x86目录下面会有sapnco_utils.dll sapnco.dll rscp4n.dll libicudecnumber.dll四个DLL文件,在项目里面添加引用,找到这个4个DLL文件,引用到项目里面,libicudecnumber.dll会提示无法引用,貌似要将项目的.NET目标平台改为4.0的才可以,这里我没有亲测。下面开始编程了: 1 using SAP.Middle 阅读全文
posted @ 2012-07-26 09:30 无 影 阅读(10606) 评论(4) 推荐(2) 编辑
摘要: SQL Server 2008 R2英文版安装图解 阅读全文
posted @ 2012-07-20 11:32 无 影 阅读(4206) 评论(0) 推荐(0) 编辑
摘要: WinForm 里面的DataGridView不像WebForm里面的GridView那样有自带的分页功能,需要自己写代码来实现分页,效果如下图: 分页控件 .CS: 1 using System; 2 using System.Collections.Generic; 3 using Sys... 阅读全文
posted @ 2012-07-18 09:41 无 影 阅读(45610) 评论(80) 推荐(6) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI; 6 using System.Web.UI.WebControls; 7 using System.Data; 8 9 public partial class _Default : System.Web.UI.Page 10 {11 protected void Page_Load(object sender, EventArgs e)12 {... 阅读全文
posted @ 2012-07-10 18:12 无 影 阅读(12503) 评论(0) 推荐(2) 编辑
摘要: As title. 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using Domino;10 11 namespace NetUseNotes12 {13 public partial class Form1 : Form14 ... 阅读全文
posted @ 2012-06-20 11:51 无 影 阅读(3231) 评论(0) 推荐(0) 编辑
摘要: 后台在RowCommand里面增加如下代码: 1 protected void gv_RowCommand(object sender, GridViewCommandEventArgs e) 2 { 3 if (e.CommandName == "ED") 4 { 5 this.txtValueUserID.Text = e.CommandArgument.ToString(); 6 Control c = (Control)e.CommandSource; 7 GridView... 阅读全文
posted @ 2012-06-07 16:04 无 影 阅读(23387) 评论(10) 推荐(2) 编辑
作者: Allen【QQ:96966 1314】 网名:无影 出处: http://www.cnblogs.com/allen0118/ 声明: 本文版权归作者和博客园共有!转载时必须保留此段声明,且在文章页面明显位置给出原文连接。