原创 ADO.net update修改數據

using System; using System.Collections.Generic; using System.Text; using System.Data.SqlClient; namespace 數據庫鏈接程序 {    

原创 不斷用戶輸入一個數字(假定用戶輸入的爲正整數),當用戶輸入"end"時顯示剛纔輸入的數字中最大的值

有Bug版本: using System; using System.Collections.Generic; using System.Text; namespace 取最大值 {     class Program     {    

原创 循環中斷驗證用戶

using System; using System.Collections.Generic; using System.Text; namespace 循環中斷驗證 {     class Program     {         s

原创 水仙花數

方法1:             int gw, sw, bw;             Console.WriteLine("  ===== 判斷100-999 水仙花數=====\n");             for (int i

原创 省市選擇器WinFrom

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

原创 封裝數據操縱語句

封裝類 using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using Sys

原创 聊天機器人

using System; using System.Collections.Generic; using System.Text; namespace 聊天機器人 {     class Program     {         st

原创 DOM window.location.href 和 navigate()

window.navigate 只支持IE瀏覽器,而 window.location.href可兼容所有瀏覽器,所以個人不明白爲什麼要有window.navigate 的出現哦,這裏我來給大家介紹一下。 首先說明的是 window.na

原创 js之NaN值與isNaN()函數

js之NaN值與isNaN()函數 NaN “Not aNumber”。出現這個數值比較少見,以至於我們可以不理它。當運算無法返回正確的數值時,就會返回“NaN”值。NaN值非常特殊,因爲它“不是數字”,所以任何數跟它都不相等,甚至

原创 去除空格

using System; using System.Collections.Generic; using System.Text; namespace 字符串類型 { class Program { s

原创 圖片上傳並預覽

前臺: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="圖片上傳._Default" %> <!DOCTYPE h

原创 手機號碼歸屬地

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

原创 .padLeft() and .padRight()

using System; using System.Collections.Generic; using System.Text; namespace 添加空格 {     class Program     {         sta

原创 Html 標籤和元素

比如<p>、<span>、<table>等這就是一個標籤; <p>這裏是內容</p>這就是一個元素,也就是說元素由一個開始的標籤和結束的標籤組成,用來包含某些內容; 這裏有一個值得注意的例外,即<br/>本身既是開始標籤也是結束標籤,但不

原创 setInterval和setTimeout

setTimeout  定義和用法:  setTimeout()方法用於在指定的毫秒數後調用函數或計算表達式。      語法:   setTimeout(code,millisec)       參數:       code (必需)