原创 ThickBox

 <html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"><script type="text/javascript" src="JS/jquery-1.1.3.1

原创 objective-c過濾HTML標籤

// 過濾HTML標籤- (NSString *)flattenHTML:(NSString *)html {    NSScanner *theScanner;    NSString *text = nil;    theScann

原创 TextBoxWatermarkExtender

 <html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server">    <title>TextBoxWatermarkExtender</title></head><bo

原创 ASP.NET程序中常用的三十三種代碼

1. 打開新的窗口並傳送參數:   傳送參數: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectInde

原创 ToggleButtonExtender

 <html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server">    <title>無標題頁</title></head><body>    <form id="for

原创 彈出子窗口並刷新父窗口(子窗口中打開子窗口)

首先定義一個頁面(父窗口) 前臺     <form id="form1" runat="server">    <div>        <asp:Button ID="btnSearch" runat="server" Text="B

原创 SQL 樹形菜單查詢,查詢本身和所有下級項

SQL 樹形菜單查詢,查詢本身和所有下級項 WITH Temp AS ( SELECT * FROM Sys_Organization WHERE OUGUID = @OUGUID AND

原创 asp.net中調用winrar實現壓縮解壓縮

using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace BLL { publi

原创 ASP.NET Ajax實現彈出提示框,頁面變灰不可點擊

最近在網上看到一篇文章,講ASP.NET ajax中的異常處理,有一部分是自定義javascript處理異常。突然想到網易郵箱中,彈出對話框,後邊的頁面變灰且不可點擊的效果。在網上找了一下,實現方法就是用兩個層,一個層用來顯示提示信息,一

原创 web打印時屏蔽標題、URL、頁碼,以及頁面最下角的時間,文件名信息

對於web打印,總和顯示頁的標題,並且會自動出現頁面和顯示這個頁面的URL,這樣讓人看着很煩。最近剛好要求做一個打印的功能,在網上找到了資料終於實現了,閒話不多說,具體看下面代碼 樣式控制不打印部分隱藏 隱藏不打印區域樣式 <style>

原创 asp.net常有小方法整理

    =================================<1>頁面控制  ====================================== <script type ="text/javascript"  s

原创 ValidatorCalloutExtender

 <html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server">    <title>無標題頁</title></head><body>    <form id="for

原创 自動生成聯動下拉框控件

 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ComponentModel;using Sy

原创 javascript實現讓網頁逃不出框架

      有的時候整個網站都需要通過框架來訪問,但某些應該在框架裏顯示才合理的頁面經常會單獨顯示(如從新窗口中打開、從外部網站鏈接進來等情況)。今天想到了一個辦法處理,在此分享。         假設網站中有一個首頁(框架頁,首頁框架包

原创 鍵盤上下移動高亮顯示

 <html>    <head>        <style>             .lightrow{color:red;}         </style>         <script language="javascrip