下面的代码实现了与以前xmlhttp类似的功能。代码如下:
httpsenddata.aspx
<%@ import namespace = "system"%>
<%@ import namespace = "system.collections"%>
<%@ import namespace = "system.web"%>
<%@ import namespace = "system.web.ui"%>
<%@ import namespace = "system.web.ui.webcontrols"%>
<%@ import namespace = "system.net"%>
<%@ import namespace = "system.io"%>
<%@ import namespace = "system.text"%>
httpreceivedata.aspx
<%@ import namespace = "system" %>
<%@ import namespace = "system.web.ui" %>
<%@ import namespace = "system.web" %>