Time of Update: 2018-12-07
1.用Css來定製DataGrid表頭HeaderStyle的cssclass屬性.fixTitle{ /*background: navy; color: white;*/ position: relative; top:
Time of Update: 2018-12-07
記錄日誌是管理系統中對使用者行為的一種監控與審核,asp.net中記錄日誌的方式有很多種,這裡我只介紹一下最近用到的log4net,關於他的具體介紹網上有很多,我講一下他的用法。第一步:在設定檔中的<configSections>節添加下面一句話 <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>第二步:在<
Time of Update: 2018-12-07
<SCRIPT language=JavaScript> <!-- // var version = "other";
Time of Update: 2018-12-07
雖然MVP是與任何具體的架構或技術無關的,但本系列文章僅以DotNet相關的技術或架構來來說明問題,請讀者諒解。 .Net的盛行.Net 的出現無疑是一場變革,早期開發需要用C、C++、pascal等編寫CGI程式,開發WEB應用,要求的技術門檻極高(當然,我聽老一輩說那時的工資也 高),使用純Asp.Net開發WEB程式,門檻低,甚至不用編寫任何代碼就用實現一個簡單的應用(當然,個人覺得這種應用沒有什麼太大的價值),這給廣
Time of Update: 2018-12-07
使用方法:方法一、js嵌入直接copy下面代碼,修改其中紅色部分,即:swf_width、swf_height、texts、files 參數<script type="text/javascript">var swf_width=240var swf_height=240var texts=’幸福的腳丫預告片’var
Time of Update: 2018-12-07
CodeCode highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
[code] /** * 對於危險字串的替換 * @author ShopNC Develop Team * @param $value string * @return string */ function dangerousCode($value){ $patterns = array( "/<script.*>.*<\/script>/siU",
Time of Update: 2018-12-07
XML的資料先是儲存在記憶體裡的,然後通過使用者的下載寫到用戶端function getXML(geturl){xh = new ActiveXObject("Microsoft.XMLHTTP"); xh.onreadystatechange = getReady; xh.open("GET",geturl,true); xh.send(); }function
Time of Update: 2018-12-07
兩個例子均用現實的例子來解釋委託事件的處理過程。很好! 第一個例子public delegate void EatEventHandler(object sender, EatEventArgs e); 這個的定義也可以不要這樣.可以直接就定義一個參數public delegate void EatEventHandler(string e); 但然用的時候的參數要相對應好哦using System; namespace nsEventSample { /// <summary&
Time of Update: 2018-12-07
1.<script language=javascript>window.onbeforeunload = function(){ if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey) { window.event.returnValue = "";
Time of Update: 2018-12-07
剛剛我介紹了一個網站誤操作導致“劫持PR”了,下面就來說說如何劫持PR了
Time of Update: 2018-12-07
我的樹是從資料庫中讀資料產生的發現只有當節點都展開的情況下,才能遍曆所有節點,否則報錯,不知道是不是bug function getV1(node) {document.all("Hidden1").value=""; var NodeArray=new Array(); NodeArray=node.getChildren(); if (parseInt(NodeArray.length)!=0) { for(var
Time of Update: 2018-12-07
不同PR值的網站,對其友情連結貢獻的PR值是不一樣的,外鏈數量越多的網站,傳遞給每個網站的PR值也越少,本文就列出達到某一PR值,需要多少不同PR值外鏈的列表。 Google的PR值計算公式是:PR(A) = (1-d) + d(PR(t1)/C(t1) + … + PR(tn)/C(tn))。如果英國留學的友情連結數量為10,英國留學PR值為3,那麼英國留學傳遞給每個友情連結的PR分值為:PR =(1-0.85) +
Time of Update: 2018-12-07
問:無論是使用Outlook還是IE, 點擊滑鼠右鍵,在彈出的捷徑功能表中都會有“查看源檔案”這一選項,奇怪的是,在我的電腦上竟然無法顯示該郵件或網頁的源檔案,雖然這並沒有影響到該軟體的 正常使用。請問,這是不是因為我之前安裝了Microsoft的某個升級版本或補丁程式而導致該功能自動屏蔽了呢?有沒有辦法可以重新啟動該功能?要知 道,無法查看源檔案,這可是一件很麻煩的事情,特別是對於Outlook使用者而言,更是如此。就拿我本人來說吧,每次收到的郵件中如果出現了URL連結,
Time of Update: 2018-12-07
文章目錄 Escape/UnescapeEncoding/Decoding These scripts are intended to explain how to "hide" HTML and/or javascript from other people who view your page's source code. It is not foolproof, but it does make it more difficult
Time of Update: 2018-12-07
public static void ProxySetting(WebRequest request) { WebProxy proxy = WebProxy.GetDefaultProxy();//擷取IE預設設定 //如果預設設定為空白,則有可能是根本不需要Proxy 伺服器,如果此時設定檔中也未配置則認為不需Proxy if (proxy.Address == null)
Time of Update: 2018-12-07
using system;using system.net;using system.io;using system.text;[stathread]static void main(string[] args){//// todo: 在此處添加代碼以啟動應用程式//string url="http://localhost/csdn2/1.asp";// string indata="aa=zhuye";string outdata="";cookiecontainer mycookieco
Time of Update: 2018-12-07
<iewc:treeview id="TreeView1" style="Z-INDEX: 101; LEFT: 176px; POSITION: absolute; TOP: 32px" runat="server" TreeNodeSrc="tree3.xml"></iewc:treeview><asp:textbox id="TextBox1" style="Z-INDEX: 102; LEFT: 176px; POSITION:
Time of Update: 2018-12-07
思路:實現日期年月日的選擇1、可以設定年的起止年份2、排除不正確日期選擇的可能3、使用javascript實現控制4、使用Text屬性方便擷取設定日期值=================================代碼如下:using System;using System.Collections;using System.Collections.Specialized;using System.ComponentModel;using System.IO;using
Time of Update: 2018-12-07
小時候老師總說:有壓力才有動力。這次衝動起源於自己發起了一個xx群,群裡面承諾一天一分享,但沒有相關的工具可以統計,同時更多的需求不斷湧現(這不剛才還有群裡的朋友說討論希望能夠每周出個定向題),問了一下xx群開發的朋友,說暫時不開放介面,完蛋,這長期人肉我可沒那個功夫,看了看筆記本上緩慢學習中的python,得,就這樣把,自己類比登入,然後用python做個簡單爬蟲去抓取資料作為工具資料來源。