原创 .net正則表達式用例
1。^/d+$ //匹配非負整數(正整數 + 0) 2。^[0-9]*[1-9][0-9]*$ //匹配正整數 3。^((-/d+) ¦(0+))$ //匹配非正整數(負整數 + 0) 4。^-[0-9]*[1-9][0-9]*$
原创 .net使用WebService獲取天氣預報
(1)新建個網站,將其命名爲WeatherService (2)右鍵程序根目錄,添加Web引用,在服務地址填入:http://www.ayandy.com/Service.asmx , 在Web引用名輸入obj ,然後添加引用。
原创 禁止右鍵、禁止查看源代碼、禁止另存爲 代碼大全原貼地址
1、禁止右鍵<html><head><script>function stop(){alert("試試能破解嗎?";return false;}document.οncοntextmenu=stop;</script><boyd>你可以
原创 點擊彈出窗體.net
<body> <form id="form1" runat="server"> <div><A title=我要投訴該帖子 href="javascript:setbg('我要投訴',450,270,'http://my.58
原创 .net存儲過程通用select
創建存儲過程 create PROCEDURE [dbo].[SP_SelectByWhere]( @strTableName nvarchar(200), @strWhere nvarchar(200)='', @strSe
原创 .net實現在線人數統計
<%@ Application Language="C#" %><script runat="server"> void Application_Start(object sender, EventArgs e) {
原创 .net鼠標經過時變色
js 代碼 <script type="text/javascript">var _oldColor; function SetNewColor(source) {
原创 JS 產品訂購 連動算價錢
//js腳本 <script language="JavaScript"> function wriet_value() { // var a=document.all.item
原创 刷新頁面滾動條定位.net
Page.Load事件中加入如下語句 Page.MaintainScrollPositionOnPostBack = true;
原创 插入 修改 刪除 查詢 存儲過程
sql 創建 存儲過程 ---查詢 create PROCEDURE [dbo].[SP_SelectByWhere]( @strTableName nvarchar(200), @strWhere nvarchar(20
原创 .net經典SQL語句大全
下列語句部分是Mssql語句,不可以在access中使用。 SQL分類: DDL—數據定義語言(CREATE,ALTER,DROP,DECLARE) DML—數據操縱語言(SELECT,DELETE,UPDATE,INSERT
原创 .net Excel 轉入Accsee 代碼
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.S
原创 ASP.NET2.0 c# 獲取瀏覽器,IP,URL,操作系統
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.
原创 .net從資源下載數據並返回字節數組
protected void Page_Load(object sender, EventArgs e) { //獲取URL地址 string url = Request.Url.ToString(
原创 .net多條件查詢
string str = ""; string sql =""; if (this.DropDownList1.SelectedItem.Text.Trim() != "請選擇")