自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (19)
  • 收藏
  • 关注

原创 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)

在连接SQL Server 2000数据库的时候,出现以下错误:在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接) 在连接SQL Server 2005数据库的时

2010-04-16 10:29:00 2439 1

原创 转载--.net使用DotNetCharting控件生成报表统计图总结

最近在做项目时要对数据进行统计分析,所以必须生成一些报表统计图(如柱形图、饼图、曲线图等),网上强烈推荐了使用DotNetCharting控件来实现,于是自己对DotNetCharting控件进行了简单的学习,下面先简单介绍一下DotNetCharting控件及其使用。    DotNetCharting是一个非常棒的.NET图表控件,对中文支持非常好,而且操作方便,开发快速,既有for we

2010-04-16 10:17:00 638 1

原创 简单的aspx页面分页技术

HTML code <!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->@ Page Language="C#" %>@ Import Namespace="System.Data.SqlClient" %>@

2010-04-15 17:03:00 836

原创 asp.net AJAX 验证用户名是否存在 -Jquery

  异步刷新实现方式有多种,也可以借助JS的多种框架,下面是使用JQuery框架实现的AJAX 验证用户名是否存在  jQuery.ajax概述  HTTP 请求加载远程数据。  通过jQuery 底层 AJAX 实现。简单易用的高层实现见 $.get, $.post 等。$.ajax() 返回其创建的 XMLHttpRequest 对象。大多数情况下你无需直接操作该对象,但特

2010-03-23 16:13:00 850

原创 web.config加密解密

2009-12-12 15:09ASP.NET应用程序的设置信息通常都存储在一个名为Web.config的XML文件里。在教程的前面部分我们已经好几次修改过Web.config文件了.比如在第一章,我们创建名为Northwind的数据集时,数据库连接字符串信息自动的添加到Web.config文件的节点.再后来,在第3章里,我们手动更新了Web.config文件,添加了一

2010-02-11 10:39:00 8035 2

转载 c#中分割字符串的几种方法

最近经常看到论坛中许多帖子询问如何使用split来分割字符串,我这里对split做一些简单的总结,希望能够对大家有所帮助。下面介绍几种方法:第一种方法:打开vs.net新建一个控制台项目。然后在Main()方法下输入下面的程序。      string s="abcdeabcdeabcde";       string[] sArray=s.Split(c);      

2010-01-22 20:15:00 430

转载 asp.net常用加密解密方法

一、数据加密/编码算法列表常见用于保证安全的加密或编码算法如下:1、常用密钥算法密钥算法用来对敏感数据、摘要、签名等信息进行加密,常用的密钥算法包括:DES(Data Encryption Standard):数据加密标准,速度较快,适用于加密大量数据的场合; 3DES(Triple DES):是基于DES,对一块数据用三个不同的密钥进行三次加密,强度更高; RC2和 RC4:用变长密钥对大量数据

2010-01-22 17:46:00 630

原创 JS与Asp.Net的传值

1. JS中取得Asp.Net的值(1)取得服务端控件的值var s = document.getElementById("TextBox1").value;   //取得TextBox1的Text值(2)取得全局变量的值在Page_Load()方法前定义protected String sT;在Page_Load()方法中赋值sT = "哈哈";JS中这样写取得var s = "

2010-01-22 15:02:00 664

delphiSocketChat(Hex源码)

delphiSocketChat(Hex源码)通过socket实现了简单的点点聊天功能,并在客户端增加了字符串转16进制方式接收发送功能

2018-06-11

金蝶u盘驱动64x

金蝶u盘驱动64x

2017-04-24

金蝶K3数据库表结构(全部).rar

从网上下载的金蝶带字段的比较全的数据库表结构

2017-04-24

手机网页模拟器

本wap网页模拟器内含多种3g风格模板,希望能帮到大家

2016-10-14

w3JMail.zip

jmail收发邮件控制(32位/64位),集成了delphi7、asp、aspnet、c++、Assembly、Perl、xml例程,是学习收发邮件原理的好帮手

2016-09-30

ASPEnCode加密组件注册

ASP代码加密工具版本6的ASPEncode.DLL。很多人下载了ASP代码加密工具版本6破解版用来加密ASP代码,用但是发现加密完的代码无法使用。只要将此dll上传到服务器并注册以后,ASP代码加密工具版本6破解版加密的代码就可以正常运行了。

2016-09-22

delphi7电压温度计控件

delphi7电压温度计控件

2016-07-02

delphi串口SpComm

delphi7

2016-07-02

delphi串口cport.3.10

delphi串口cport.3.10

2016-07-02

CommMonitor 侦测、拦截、逆向分析串口通信协议

CommMonitor 侦测、拦截、逆向分析串口通信协议, 是侦测RS232/422/485串行端口 的专业工具软件,是软硬件工程师的最佳助手。CommMonitor 能侦听、拦截、记录、分析 串行通信协议,让您对应用程序操作串行端口的过程和细节,让您及时的模拟被侦听程序 或设备的数据、控制流,提高工作效率。

2015-04-17

Delphi_2007_2009_WOW64_Debugger_Fix.zip

borland 64 软件调试出错. 解决Assertion failure: (!SetThreadContext failed) in ..\win32src\thread32.cpp 问题

2014-07-11

PowerDesigner12的破解文件

PowerDesigner 12变态破解方法 方法一:修改 1。先安装UltraEdit-32二进制编辑器。 2。找到pdfilm12.dll文件. 安装磁盘:"Sybase"PowerDesigner 12"pdflm12.dll 。 3。修改pdflm12.dll文件.使用UltraEdit-32打开此文件,查找:83 C4 14 8B 85 E4 FE FF FF将此字符串改为83 C4 14 33 C0 90 90 90 90。 方法二:覆盖 直接下载下载pdflm12.dll,覆盖即可,这次定能行.

2014-04-11

SQL Monitor for Oracle,MySQL和DB2 v2.4.3.6 中文绿色版

SQL Monitor for Oracle,MySQL and DB2 是款免费的数据库跟踪工具,专门用来分析CPU使用率高的问题。 软件功能: 1. 监控SQL Server的进程和Job,查看当前执行的SQL/命令,并终止之。 2. 对象浏览器,跟 SQL Server Management Studio 类似 3. 查询数据 4. 数据库收缩、备份、分离等 5. 性能分析 6. 对象/脚本查找 原理非常简单,首先是获取所有SQL进程,方法有多种: 1.sys.sysprocesses:在SQL Server 2000就声明要被移除了,不建议使用。实际上sys.sysprocesses是用以下的dmv来映射的。 2. sp_who 3. sp_who2:跟sp_who类似,获取的字段比sys.sysprocesses和以下的dmv要少。 4. sys.dm_exec_sessions等相关dmv: select * from sys.dm_exec_connections select * from sys.dm_exec_requests select * from sys.dm_exec_sessions 然后dbcc INPUTBUFFER(spid)来获取指定进程执行的SQL,最后用kill spid来中止SQL进程。 实际调试起来,会用到其它复杂的SQL,譬如是什么锁,锁定哪个数据库中的哪个表,等等,下一篇文章才写吧。

2014-04-11

.NET中实现客户端联动菜单 (无刷新)

Ajax实现无刷新三联动下拉框 1.html代码 <HTML> <HEAD> <title>Ajax实现无刷新三联动下拉框</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> <SCRIPT language="javascript"> //城市------------------------------ function cityResult() { var city=document.getElementById("DropDownList1"); AjaxMethod.GetCityList(city.value,get_city_Result_CallBack); } function get_city_Result_CallBack(response) { if (response.value != null) { //debugger; document.all("DropDownList2").length=0;          var ds = response.value; if(ds != null && typeof(ds) == "object" && ds.Tables != null) { for(var i=0; i<ds.Tables[0].Rows.length; i++)      {      var name=ds.Tables[0].Rows[i].city;        var id=ds.Tables[0].Rows[i].cityID;        document.all("DropDownList2").options.add(new Option(name,id));      } } } return } //市区---------------------------------------- function areaResult() { var area=document.getElementById("DropDownList2"); AjaxMethod.GetAreaList(area.value,get_area_Result_CallBack); } function get_area_Result_CallBack(response) { if (response.value != null) { document.all("DropDownList3").length=0;          var ds = response.value; if(ds != null && typeof(ds) == "object" && ds.Tables != null) { for(var i=0; i<ds.Tables[0].Rows.length; i++)      {        var name=ds.Tables[0].Rows[i].area;        var id=ds.Tables[0].Rows[i].areaID;        document.all("DropDownList3").options.add(new Option(name,id));      } } } return } function getData() { var province=document.getElementById("DropDownList1"); var pindex = province.selectedIndex; var pValue = province.options[pindex].value; var pText = province.options[pindex].text; var city=document.getElementById("DropDownList2"); var cindex = city.selectedIndex; var cValue = city.options[cindex].value; var cText = city.options[cindex].text; var area=document.getElementById("DropDownList3"); var aindex = area.selectedIndex; var aValue = area.options[aindex].value; var aText = area.options[aindex].text; var txt=document.getElementById("TextBox1"); document.getElementById("<%=TextBox1.ClientID%>").innerText="省:"+pValue+"|"+pText+"市:"+cValue+"|"+cText+"区:"+aValue+"|"+aText; } </SCRIPT> </HEAD> <body ms_positioning="GridLayout"> <form id="Form1" method="post" runat="server"> <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 96px; POSITION: absolute; TOP: 32px" cellSpacing="1" cellPadding="1" width="300" border="1" bgColor="#ccff66"> <TR> <TD>省市</TD> <TD><asp:dropdownlist id="DropDownList1" runat="server"></asp:dropdownlist></TD> </TR> <TR> <TD>城市</TD> <TD><asp:dropdownlist id="DropDownList2" runat="server"></asp:dropdownlist></TD> </TR> <TR> <TD>市区</TD> <TD><asp:dropdownlist id="DropDownList3" runat="server"></asp:dropdownlist></TD> </TR> </TABLE> <asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 416px; POSITION: absolute; TOP: 48px" runat="server" Width="424px"></asp:TextBox><INPUT style="Z-INDEX: 103; LEFT: 456px; WIDTH: 56px; POSITION: absolute; TOP: 96px; HEIGHT: 24px" type="button" value="test" onclick="getData();"> </form> </body> </HTML>2.cs代码 using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; namespace AjaxTest { /**//// <summary> /// Summary description for WebForm1. /// </summary> public class WebForm1 : System.Web.UI.Page { protected System.Web.UI.WebControls.DropDownList DropDownList1; protected System.Web.UI.WebControls.DropDownList DropDownList2; protected System.Web.UI.WebControls.TextBox TextBox1; protected System.Web.UI.WebControls.DropDownList DropDownList3; private void Page_Load(object sender, System.EventArgs e) { Ajax.Utility.RegisterTypeForAjax(typeof(AjaxMethod)); if(!Page.IsPostBack) { this.DropDownList1.DataSource=AjaxMethod.GetProvinceList(); this.DropDownList1.DataTextField="province"; this.DropDownList1.DataValueField="provinceID"; this.DropDownList1.DataBind(); this.DropDownList1.Attributes.Add("onclick","cityResult();"); this.DropDownList2.Attributes.Add("onclick","areaResult();"); } } Web Form Designer generated code#region Web Form Designer generated code override protected void OnInit(EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent(); base.OnInit(e); } /**//// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); } #endregion } }3.AjaxMethod using System; using System.Data; using System.Data.SqlClient; namespace AjaxTest { /**//// <summary> /// Summary description for AjaxMethod. /// </summary> public class AjaxMethod { GetProvinceList#region GetProvinceList public static DataSet GetProvinceList() { string sql="select * from province"; return GetDataSet(sql); } #endregion GetCityList#region GetCityList [Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)] public DataSet GetCityList(int provinceid) { string sql="select * from city where father="+provinceid; return GetDataSet(sql); } #endregion GetAreaList#region GetAreaList [Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)] public DataSet GetAreaList(int cityid) { string sql="select * from area where father="+cityid; return GetDataSet(sql); } #endregion GetDataSet#region GetDataSet public static DataSet GetDataSet(string sql) { string ConnectionString=System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]; SqlDataAdapter sda =new SqlDataAdapter(sql,ConnectionString); DataSet ds=new DataSet(); sda.Fill(ds); return ds; } #endregion } }4.web.config <httpHandlers> <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" /> </httpHandlers>

2013-05-28

testSpring

在testSpring项目上点右键:运行方式-JUnit测试 输出结果为: 2013-3-20 22:22:46 org.springframework.context.support.AbstractApplicationContext refresh 信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@c1f10e: display name [org.springframework.context.support.ClassPathXmlApplicationContext@c1f10e]; startup date [Wed Mar 20 22:22:46 CST 2013]; root of context hierarchy 2013-3-20 22:22:46 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions 信息: Loading XML bean definitions from class path resource [beans.xml] 2013-3-20 22:22:49 org.springframework.context.support.AbstractApplicationContext refresh 信息: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@c1f10e]: org.springframework.beans.factory.support.DefaultListableBeanFactory@15e234c 2013-3-20 22:22:49 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons 信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@15e234c: defining beans [personService]; root of factory hierarchy save()方法调用

2013-03-21

testHibernate

在StudentTest.java文件上点右键,运行方式-Java应用程序 输出结果:能在数据库表hibernate中插入一条数据,则认为成功,其中id项不能重复

2013-03-21

TestStruts2

MyEclipse中在项目上点右键:运行方式-MyEclipse Server Application运行后,在浏览器中输入 http://www-eyv4wadoro2:8080/TestStruts2/hello.action 输出为:The message generated by my first action is: hello world!出现hello world说明运行成功。

2013-03-21

jna jna的jar包

从这里下载的jna的jar包: https://jna.dev.java.net/servlets/ProjectDocumentList?folderID=7408&expandFolder=7408&folderID=0 ※下载后,把后缀.zip改成.jar即可。

2012-08-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除