in winform? use LinkLabel Class

解决方案 »

  1.   

    算你运气好。这是昨天做的WebRequest myRequest = WebRequest.Create("http://expert.csdn.net/Expert/topic/1154/1154728.xml?temp=.1421778"); // Return the response. 
    WebResponse myResponse = myRequest.GetResponse(); // Code to use the WebResponse goes here. // Close the response to free resources.
    Console.WriteLine(myResponse.ContentLength);
                    Console.WriteLine("\n"+myResponse.ResponseUri);
     Console.WriteLine("\n"+myResponse.ContentType);
     Console.WriteLine("\n"+myResponse.Headers);
     Console.WriteLine("\n"+myResponse.ToString());
     Console.WriteLine(" 为请求\n");
    Console.WriteLine("\nConnectionGroupName"+myRequest.ConnectionGroupName);//ResponseUri);
    Console.WriteLine("\nContentLength"+myRequest.ContentLength );
    Console.WriteLine("\n ContentType"+myRequest.ContentType );
    Console.WriteLine("\n Credentials"+myRequest.Credentials);
    Console.WriteLine("\n Headers"+myRequest.Headers );
                    Console.WriteLine("\n Method "+myRequest.Method );
        Console.WriteLine("\n PreAuthenticate"+myRequest.PreAuthenticate);
        Console.WriteLine("\n Proxy"+myRequest.Proxy );
           Console.WriteLine("\nTimeout"+myRequest.Timeout);
        Console.WriteLine("\n"+myRequest.ToString() );
       myResponse.Close();
      

  2.   

    Server.Transfer("你要连的网页");
      

  3.   

    使用System.Diagnostics.Process类可以启动和停止程序,这个类的Start函数可用于启动一个exe文件。  比如,如果想在浏览器中打开一个URL,就可以将URL作为参数传递给Start函数:   System.Diagnostics.Process.Start("http://www.c-sharpcorner.com");
      

  4.   

    System.Diagnostics.Process.Start("http://www.c-sharpcorner.com");