#region GET
/// <summary>
/// GET
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
public static string getPage(String url) 
{
WebResponse result = null;
string txthtml=string.Empty;
try 
{  
                 
WebRequest req = WebRequest.Create(url);
  
result = req.GetResponse();
Stream ReceiveStream = result.GetResponseStream();
Encoding encode = System.Text.Encoding.GetEncoding("gb2312");
StreamReader sr = new StreamReader(ReceiveStream,encode);
//this.Message.Text+="\r\n已接收到响应流";
if (true) 
{
Char[] read = new Char[256];
int count = sr.Read( read, 0, 256 ); // this.Message.Text+="HTML...\r\n";
while (count > 0) 
{
String str = new String(read, 0, count);
txthtml+=str;
count = sr.Read(read, 0, 256);
}
// this.Message.Text="":
}

catch(Exception) 
{
txthtml="err";
//this.is_id.Value=url;

finally 
{
if (result != null) 
{
result.Close();
}

}
//this.is_id.Value=url;
return txthtml;
} #endregion