· 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...
· 一.这个为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....
· 在.NET Data Access Architecture Guide一文中看到的几种保存ConnectionString的方法:In an application configuration file 优点:易部署,易编程控制,支持动态更新缺点:安全性 In a Universal Data Link (UDL) file (supported only by the OLE DB .NET Data Provider) 优点:标准方案缺点:性能,安 ...
· 其实非常简单,就是用SqlDataAdapter的update方法就行了。主要代码例如下所示:
private void update(){string link = ConfigurationSettings.AppSettings["link_local"].ToString();SqlConnection conn = new SqlConnection(link);SqlDataAdapter da = new SqlDataAdapter("SELECT...
· Confirmation Page1. IntroductionIn New or Edit page, users might press the Close button by mistake and lost the content that they have input. To avoid this mistaken action, application should prompt users before the page is closed. This page will not be closed unless use...
· using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Net;
using System.Threading;namespace WindowsApplication1
{/// <summary>/// Form1 的摘要说明。/// </summary>public class Form1 : Sys...