HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.contoso.com/example.aspx");
request.BeginGetRequestStream(new AsyncCallback(ReadCallback), request);
private static void ReadCallback(IAsyncResult asynchronousResult)
{。。。。。。。。Stream postStream = request.EndGetRequestStream(asynchronousResult);
。。。。。。。。}
request.BeginGetResponse(new AsyncCallback ( ResponseCallBack), request);
public void ResponseCallBack(IAsyncResult result){
......request.EndGetResponse(result) ;........}