原创 通用版登錄login_委託

using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; u

原创 數據綁定版省市選擇器

aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="省市級聯數據綁定.aspx.cs" Inherits="簡單綁定.省市級聯數據綁定" %> <!DOCTYPE

原创 利用sql存儲過程顯示內容到dataGridView

app.config <?xml version="1.0" encoding="utf-8" ?> <configuration>   <connectionStrings>     <add connectionString="Dat

原创 ADO實現sql事務

app.config: <?xml version="1.0" encoding="utf-8" ?> <configuration>   <connectionStrings>     <add connectionString="Da

原创 sql語句小練習

1計算100天后病毒發作的日期。 print convert(varchar(50), dateadd(day,100,getdate()),111) 2凡是入職一年以上的員工,工資增加500¥ update employee set

原创 dropdownlist 啓用了autopostback但是不執行selectedindexchanged事件

原因很簡單,就是因爲dropdownlist設置了相同的value值。

原创 遊標的建立

  --使用遊標 --遊標的定義 --(1)定義 declare cur_student cursor fast_forward--遊標快速向前 for select * from student--基於返回的結果集 --2(打開) op

原创 觸發器的定義與使用

--每次插入數據時候都把數據值打印出來 create trigger tri_student_after on student after insert as begin declare @sClassId int declare @SN

原创 .net版本聊天室源碼

聊天室.aspx:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="聊天室.aspx.cs" Inherits="_10_25.聊天室" %> <!DOCTYPE htm

原创 ADO中使用儲存過程_sql事務

app.config <?xml version="1.0" encoding="utf-8" ?> <configuration>   <connectionStrings>     <add connectionString="Dat

原创 大寫日期轉換成阿拉伯數字的算法

using System; using System.Collections.Generic; using System.Linq; using System.Text;   namespace _911日期轉換 {     class

原创 sql的insert語句自動生成器_c#源碼

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u

原创 c#運算符使用,以及裝箱拆箱

  using System; using System.Collections.Generic; using System.Linq; using

原创 asp中實現sql事務登錄_增刪改查

web.config <?xml version="1.0" encoding="utf-8"?> <!--   有關如何配置 ASP.NET 應用程序的詳細消息,請訪問   http://go.microsoft.com/fwlink/

原创 dataGridView分頁顯示數據

app.config: <?xml version="1.0" encoding="utf-8" ?> <configuration>   <connectionStrings>     <add connectionString="Da