摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Text;namespace WebAppRequestUrl{ public partial class ...
阅读全文
摘要:/// <devdoc>/// <para> /// Terminates execution of the current page and begins execution of a new/// request using the supplied URL path./// If preserveForm is false, the QueryString and F...
阅读全文
摘要:private static int HexToInt(char h) { return( h >= '0' && h <= '9' ) ? h - '0' : ( h >= 'a' && h <= 'f' ) ? h - 'a' + 10 : ( h >= 'A' && h <= 'F' ) ? h - 'A' ...
阅读全文
摘要:命题:如何获取本地局域网内的可用IP地址? 从这个命题,可以看出这里要解释的概念,什么是局域网?详见(http://baike.baidu.com/view/788.htm) 当然,在这篇文章中我们是指我们可以有效ping通的IP地址。 思路1: 穷举: 假设我们知道我们的IP地址为192.168.1.1 /24,即子网掩码为255.255.255.0,那么通过匹配192.168.1.*,所有可p...
阅读全文