原创 SQLserver創建省市縣三級聯動的建表代碼
省 DROP TABLE [province] CREATE TABLE [province] ( [id] [int] NOT NULL , [provinceID] [char] (6) NULL , [province] [
原创 C#中繼承
父類computer代碼 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace leiku {
原创 AJAX實現無刷新分頁(三層\存儲過程\WebService\AJAX\Jquery)
前臺html頁 <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> table
原创 asp.net 前臺jquery利用ajax 調用後臺方法
前臺代碼 <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <link href="loginleft.cs
原创 只需修改txt文檔就能連接兩種數據庫(利用繼承和多態)
可以修改指定路徑的txt文本文檔數據,也可以在Web.config中修改key的值來控制要連接的數據庫 前臺代碼 <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="serve
原创 將大寫日期轉成阿拉伯數字類型的
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing
原创 密碼加密MD5
txtp.text指密碼輸入框 byte[] date = Encoding.Unicode.GetBytes(txtp.Text.ToCharArray());
原创 Application詳細使用
1.Application的創建Application["application名稱"] = "application的值";2.Application的使用string str = Application["application名稱"
原创 C#的繼承、多態簡單小示例
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO;
原创 C#面試題之一
下面是一個由*號組成的4行倒三角形圖案。要求:1、輸入倒三角形的行數,行數的取值3-21之間,對於非法的行數,要求拋出提示“非法行數!”;2、在屏幕上打印這個指定了行數的倒三角形。 int n = 0;
原创 Windows多線程及線程池
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using
原创 緩存失效的三種方式
效果當在規定時間內訪問一個網頁時,網頁上的內容咱是保持不變,時間一過,網頁上的內容就會重新訪問服務器,獲取數據。 前臺: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat
原创 Gridview中checkbox選中時獲取當前行id
foreach (GridViewRow item in GridView1.Rows) { if (item.RowType != DataCon
原创 面試題之百錢百雞和小明買汽水
公雞5錢一隻,母雞3錢一隻,小雞3只一錢 100塊錢怎樣能買一百隻雞 for (int i = 0; i <= 100; i++) { for (int j = 0; j <=
原创 WebFrom服務端驗證控件
1.非空驗證控件:RequireFieldValidator ; 2.數據比較驗證:CompareValidator ; 3.數據範圍驗證:RangeValidator ; 4.正則表達式驗證:RegularExpressionVali