06 2013 档案

c# 字体安装
摘要:[DllImport("kernel32.dll", SetLastError = true)] static extern int WriteProfileString(string lpszSection, string lpszKeyName, string lpszString); [DllImport("user32.dll")] public static extern int SendMessage(int hWnd, // handle to destination window uint Msg, // me... 阅读全文

posted @ 2013-06-22 18:34 gwazy 阅读(556) 评论(0) 推荐(0)

简单的文件版本更新
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Net;namespace WinUpVer{ public partial class FrmMain : Form { public FrmMain() { ... 阅读全文

posted @ 2013-06-20 18:07 gwazy 阅读(315) 评论(0) 推荐(0)

c# 压缩文件
摘要:递归实现压缩文件夹和子文件夹。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.IO.Compression;using System.Collections;using System.Runtime.Serialization;using System.Runtime.Serialization.Formatters.Binary;namespace CommonBaseInfo{ public class Zip ... 阅读全文

posted @ 2013-06-20 17:16 gwazy 阅读(413) 评论(0) 推荐(0)

winform 使用 webclient 上传
摘要:public void ProcessRequest(HttpContext context) { HttpPostedFile file = context.Request.Files[0]; file.SaveAs(context.Server.MapPath("~/uploadimages/") + file.FileName); } string strurl = "http://localhost/Provider/HandlerUpImage.ashx"; ... 阅读全文

posted @ 2013-06-10 09:26 gwazy 阅读(530) 评论(0) 推荐(0)

winform 调用 ashx
摘要:WebClient mywebclient = new WebClient(); byte[] cheklist = mywebclient.DownloadData(severurl + "/Provider/HandlerWinForm.ashx?deptid=" + Program.InstitutionID + "&method=insertadminlog"); string strcheck = Encoding.ASCII.GetString(cheklist); WebClient wc=new WebClient (); Str 阅读全文

posted @ 2013-06-10 09:08 gwazy 阅读(4413) 评论(2) 推荐(0)

webservice 使用
摘要:[WebMethod] public List<EntityAdmin_Dept> GetAdmin_DeptChild(string InstitutionID) { DataCondition<EntityAdmin_Dept.Field> conditionIn = new DataCondition<EntityAdmin_Dept.Field>(); conditionIn.Add("{0}='" + InstitutionID + "'", EntityAdmin_Dept.Field.De 阅读全文

posted @ 2013-06-10 09:04 gwazy 阅读(205) 评论(0) 推荐(0)

导出 sqlsever 到access
摘要:SE [JjwDB]GO/****** Object: StoredProcedure [dbo].[p_exporttb] Script Date: 06/09/2013 14:12:07 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO/*--数据导出Access导出数据库中的表到Access如果文件不存在,将自动创建文件如果表存在,将覆盖现有的表支持导出所有的数据类型--邹建 2004.04(引用请保留此信息)--*//*--调用示例p_exporttb @s_tbname='sysobjects',@path=&# 阅读全文

posted @ 2013-06-09 15:17 gwazy 阅读(461) 评论(0) 推荐(0)

win8 sqlserver2008 附加数据库错误: 5120
摘要:今天分离附加数据库,分离出去然后再附加,没有问题。但是一把.mdf文件拷到其它文件夹下就出错,错误如下:无法打开物理文件 "E:\db\homework.mdf"。操作系统错误 5:"5(拒绝访问。)"。 (Microsoft SQL Server,错误: 5120)问了下朋友,朋友说找到.mdf文件改文件的安全权限。搞了半天才明白,原来是找到.mdf文件,右键->属性->安全->选择当前用户->编辑->完全控制。如果还出现这种情况,记得把.log文件的安全权限也 阅读全文

posted @ 2013-06-03 15:04 gwazy 阅读(315) 评论(0) 推荐(0)

导航