· //------------------------------------------------------------------------------
/// <copyright from='1997' to='2001' company='Microsoft Corporation'>
/// Copyright (c) Microsoft Corporation. All Rights Reserved.
///
/// This source code is intended only as a supp...
· using System;
using System.Threading;class App {
public static void Main() {
Console.WriteLine("Checking for status updates every 2 seconds.");
Console.WriteLine(" (Hit Enter to termiante the sample)");
Timer timer = new Timer(new Ti...
· using System;
using System.Threading;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;namespace ThreadPoolDelegate
{
//public delegate void ReceiveCompletedEventHandler(string url,string title,string sourcecode);
public deleg...
· Retrieving information on system resources and process information was not possible wihtout API calls in VB6. Calling API functions has its own difficulties. Identifying correct datatypes, Identifying the API functions, having ErrorHandles to avoid app Crashes are some of tho...
· 程序很简单,一个form内有一个按钮,点击后弹出一个对话框,点击对话框start按钮后执行新起一个线程执行一个工作类的某个方法,这个方法故意抛出异常,然后在对话框内捕捉到这个异常。
注意,这儿我是用事件来捕捉异常,这只是其中一种方法form 的代码
using System;
using System.Drawing;
using ...
· Option Explicit
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long,...
· 前面有人提了方法,大老鹰也提了意见我这里给出一个更简单的办法,请批评指正string input = "DONGFANGZHIZHU19770822";string alpha = "";string number = "";foreach(char c in input) {
if (Char.IsNumber(c))
number += c;
else
al...
· using System;
using System.Security ;
using System.Security.Cryptography ;
using System.Diagnostics ;
using System.Web ;
using System.Text ;namespace Bigeagle.Util
{
/// <summary>
/// 一个加密类
/// <br>Author: Bigeagle@163.net</br>
/// <...
· In this article, a simple web based editor is built for the web.config file of ASP.NET. This article will cover the basics of the new web.config file structure, as well as helping the reader to understand the configuration file hierarchy of the .NET environment. It will also ...
· C#
-----------------------------------------------
//名称空间
using System;
using System.Security.Cryptography;
using System.IO;
using System.Text; //方法
//加密方法
public string Encrypt(string pToEncrypt, string sKey)
{
DESCryptoServic...
· 检测是否还有黑客代码的ASP.net函数 ouwx(原作)
关键字 黑客
查询是否还有黑客代码的ASP.net函数,非常适合留言簿、bbs、聊天室<%@ Page language="vb"%>
<script runat="server">
dim heike(2) as string
dim i as integer
'定义黑客代码
publi...