vb.net中的数据库连接 2005-12-23 0 · 在项目中选择左边“工具盒”中的数据库适配器,本例子用的是ODBC数据源,所以选择OdbcDataAdapter.
选中OdbcDataAdapter,在属性窗口中选择SelectCommand,展开,选择Connection,在下拉框中选择“新建”,在弹出的窗口中选择Computer database页,选中想要得OdbcDataSource.选择Command Text,点击旁...
.net中webform和winform连接sql server 2000 ... 2005-12-23 0 · 一.这个为c#连接winform
注意点:(1)调用时必须引用此类的命名空间
(2)类中引用的命名空间
using System;
using System.Data;
using System.Data.SqlClient;
(3)调用示例:DataSet ds =new DataSet();string sql="select * from [user]";ds=DoDataBase.GetDataSet(sql);dataGrid1....
关于DataRow和DataColumn的一点个人简单理解 2005-12-23 0 · PS:其实这个放在这里只是当作一个我对于自己不懂的地方所作的一个记录而已。如果有什么错误的或者不当的地方欢迎大家指正。关于DataRow和DataColumn,其实就是DataTable的行与列,作为DataTable的两个集合元素存在,用类似于坐标系里x与y的方法确定唯一的表值。
本来以为两个都是同等性质的,不过 ...
正则表达式的基本语法 2005-12-23 0 · 首先让我们看两个特殊的符号'^'和'$'。他们的作用是分别指出一个字符串的开始和结束。例子如下: "^The":表示所有以"The"开始的字符串("There","The cat"等);
"of despair$":表示所以以"of despair"结尾的字符串;
"^abc$...
有数据绑定、排序、查找功能的ListView(一) 2005-12-23 0 · 本控件纯粹为练习用,所以没有考虑使用DataGrid代替。该控件不足的地方:
1、当父窗体运行后,DataSet被填充时,ListViewEx不能自动判断该种情况,只能通过CurrencyManager的ItemChanged的事件来调用填充ListViewItem的函数,有时该事件会被调用两次,ListViewEx则要填充两次。
2、对于FindItem中 ...
有数据绑定、排序、查找功能的ListView(二): 2005-12-23 0 · using System;
using System.Data;
using System.Text;
using System.Globalization;
using System.Collections;
using System.Reflection;using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Design;using System.Windows.Forms;
using System.Windows.Forms.Design;us...
单独控制IE WebControl里面的Treeview的几个 ... 2005-12-23 0 · 在使用这个TreeView是经常需要将动作PostBack到服务器端来做一些数据操作,如OnExpanded或者SelectIndexChange等。TreeView控件提供了一个AutoPostBack的属性来设置这个TreeView是否需要进行PostBack的动作来让后台操作数据。但是这个属性一旦设成True的话,那么TreeView的所有动作都会PostBack回 ...
ado连接数据库模块 2005-12-23 0 · 加入这个模块后,在程序中任意地方调用:打开ado数据库连接:Call CnnDB(mcnn, sCnn, True) 关闭ado数据库连接:Call DisCnn(mcnn) 这样,让数据库连接更加方便被连接和关闭'%#******************************************
'%#*窗体名称:MdlDB
'%#*功能描述:加入这个模块后调用 Call CnnDB(gcnnD...
用Oracle数据表绑定DataGrid 2005-12-23 0 · 累啊,终于找到了如何将数据表绑定到DateGrid的方法了。不过这次犯了经验主义错误,一开始就是去Google找的,找了半天没找到,后来还是在CSDN社区上找到了。呵呵,笨啊。这是Oracle版的。private void button1_Click(object sender, System.EventArgs e)
{string ConnectionString="Data Sour...
目录共享 2005-12-23 0 · Option Explicit'NetShareAdd在Win9x下是放在SrvAPI.dll中,而在NT下则入在NETAPI32.DLL中。
'
'在Win98下应使用结构SHARE_INFO_50
'在NT下应使用结构SHARE_INFO_2 和SHARE_INFO_502Private Declare Function NetShareAdd Lib "srvapi.dll" (ByVal ServerName As Long, ByVal level As L...
数据库安装程序 2005-12-23 0 · 引言最近做了一个数据库安装程序,本打算用 InstallShield X 来做的,结果D版没买到,用 Visual Studio.net 自带的安装工具又不能满足要求,最后只好自己开发。
设计概要设计一个窗体基类(WizardForm),再根据所需安装步骤创建不同的继承自该类的子类,通过一个静态的Hashtable类型的全局变量来 ...
转换DataSet到普通xml的新法 2005-12-23 0 · 大家知道,用dataset传递的WebService,微软会在各个节点加上schema,所以无法与j2ee,Flash兼容,所以我找到了一种转换他们变成普通XML的方法。代码如下:方法一:
Public Class DataSetToXML : Inherits System.Web.UI.PagePrivate Sub Page_Load(ByVal sender As System.Object, ByVal e As Syst...
精华的微软文章.NET 数据访问架构指南 2005-12-23 0 · 数据绑定 所有这三个对象都可以作为数据绑定控件的数据源。而DataSet 和 DataTable 可作为更广范围控件的数据源。这是因为DataSet 和 DataTable 实现了(生成Ilist接口)IlistSource接口,而SqlDataReader 实现了Ienumerable接口。许多能进行数据绑定的WinForm控件需要实现了Ilist接口的数据源。 ...
祥解Visual C#数据库编程 2005-12-23 0 · 关于数据库编程,微软提供了一个统一的数据对象访问模型,在Visual Studio6.0中称为ADO,在.NET中则统一为ADO.NET,掌握ADO.NET就等于掌握了数据库编程的核心。针对数据库编程始终是程序设计语言的一个重要方面的内容,也是一个难点。数据库编程的内容十分丰富,但最为基本编程的也就是那么几点,譬...
Using Web Services for Remoting over the I... 2005-12-23 0 · Introduction
This article describes a design and implementation (C#) of the Remoting over Internet using the Web Service as a gateway into the Remoting infrastructure. The Web Service Gateway (Custom Remoting Channel) allows to enhance the remoting channel over Internet and ...
webservice系列教学(14)-如何调用webservice... 2005-12-23 0 · //////////////////////////////////////////////////////////////////////////////////////////////////
// function: CMClientDlg::OnDeleteitemListparam()
//
// parameters: (NMHDR* pNMHDR, LRESULT* pResult)
//
// description: for each row of list, it calls the Release
//
// r...
webservice系列教学(13)-如何调用webservice... 2005-12-23 0 · //////////////////////////////////////////////////////////////////////////////////////////////////
// function: CMClientDlg::Execute()
//
// parameters: No Parameters
//
// description: Pass the parameters and invoke the operation, get the result and update the
// ...
webservice系列教学(10)-如何调用webservice... 2005-12-23 0 · 4.10使用vc调用
需下载msSoapToolkit20.exe
引用
#import "msXML3.dll"
using namespace MSXML2;
#import "C:\Program Files\Common Files\MSSoap\Binaries\mssoap1.dll" exclude("IStream", "ISequentialStream", "_LARGE_INTEGER", &quo...
webservice系列教学(11)-如何调用webservice... 2005-12-23 0 · <MClientDlg.h>
// MClientDlg.h : header file
//#if !defined(AFX_MCLIENTDLG_H__C2D8DBC4_30FE_40DD_848C_78D5834CAD07__INCLUDED_)
#define AFX_MCLIENTDLG_H__C2D8DBC4_30FE_40DD_848C_78D5834CAD07__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000//...
webservice系列教学(8)-如何调用webservice... 2005-12-23 0 · 4.7使用vb.net调用
无需下载任何组件
新建项目Visual Basic项目windows应用程序。
在解决方案资源管理器中添加web引用,输入wsdl文件所在地址。
将web引用改名为yundan.
yundan.(service_name)即可引用
*需引用System.web.services*
例程:
Public Class Form1
Inherits System.Wind...
页次:133 /228 20篇/页 首页 上一页 下一页 尾页 合计 4553 篇 Go:第1页 第2页 第3页 第4页 第5页 第6页 第7页 第8页 第9页 第10页 第11页 第12页 第13页 第14页 第15页 第16页 第17页 第18页 第19页 第20页 第21页 第22页 第23页 第24页 第25页 第26页 第27页 第28页 第29页 第30页 第31页 第32页 第33页 第34页 第35页 第36页 第37页 第38页 第39页 第40页 第41页 第42页 第43页 第44页 第45页 第46页 第47页 第48页 第49页 第50页 第51页 第52页 第53页 第54页 第55页 第56页 第57页 第58页 第59页 第60页 第61页 第62页 第63页 第64页 第65页 第66页 第67页 第68页 第69页 第70页 第71页 第72页 第73页 第74页 第75页 第76页 第77页 第78页 第79页 第80页 第81页 第82页 第83页 第84页 第85页 第86页 第87页 第88页 第89页 第90页 第91页 第92页 第93页 第94页 第95页 第96页 第97页 第98页 第99页 第100页 第101页 第102页 第103页 第104页 第105页 第106页 第107页 第108页 第109页 第110页 第111页 第112页 第113页 第114页 第115页 第116页 第117页 第118页 第119页 第120页 第121页 第122页 第123页 第124页 第125页 第126页 第127页 第128页 第129页 第130页 第131页 第132页 第133页 第134页 第135页 第136页 第137页 第138页 第139页 第140页 第141页 第142页 第143页 第144页 第145页 第146页 第147页 第148页 第149页 第150页 第151页 第152页 第153页 第154页 第155页 第156页 第157页 第158页 第159页 第160页 第161页 第162页 第163页 第164页 第165页 第166页 第167页 第168页 第169页 第170页 第171页 第172页 第173页 第174页 第175页 第176页 第177页 第178页 第179页 第180页 第181页 第182页 第183页 第184页 第185页 第186页 第187页 第188页 第189页 第190页 第191页 第192页 第193页 第194页 第195页 第196页 第197页 第198页 第199页 第200页 第201页 第202页 第203页 第204页 第205页 第206页 第207页 第208页 第209页 第210页 第211页 第212页 第213页 第214页 第215页 第216页 第217页 第218页 第219页 第220页 第221页 第222页 第223页 第224页 第225页 第226页 第227页 第228页