Asp.NET XMLHTTP»ñÈ¡ÍøÒ³ÄÚÈÝC#°æ
Ê×ÏÈÐèÒªÔÚÏîÄ¿ÖÐÌí¼Ó(Microsoft XML, v3.0)µÄÒýÓÃ
using MSXML2;
private string VerifyNotifyURL(string URL)
{
MSXML2.XMLHTTPClass xmlhttp=new MSXML2.XMLHTTPClass();
try
{
xmlhttp.open("GET",URL,false,null,null);
xmlhttp.setRequestHeader("CONTENT-TYPE","text/xml;charset=gb2312");
xmlhttp.send(null);
return System.Text.Encoding.GetEncoding("gb2312").GetString((byte[])xmlhttp.responseBody);
}
catch
{
return "";
}
}
Ïà¹ØÎĵµ£º
²âÊÔµÄurlµØÖ·ÊÇhttp://www.test.com/testweb/default.aspx, ½á¹ûÈçÏ£º
Request.ApplicationPath: /testweb
Request.CurrentExecutionFilePath: /testweb/default.aspx
Request.FilePath: /testweb/defa ......
ʼþÄ£ÐÍ
µ±Ä³¸öÒ³Ãæ±»ÇëÇóʱ£¬ËüµÄÀ༰ÆäËù°üº¬µÄ·þÎñÆ÷¿Ø¼þ»á¸ºÔð´¦ÀíÇëÇ󣬳ÊÏÖHTMLÊä³ö£¬²¢Ëæºó·¢»Ø¿Í»§¶Ë¡£ÓÉÓÚHTTPÐÒéµÄ¹ÌÓÐÌØÐÔ£¬¿Í»§¶ËÓë·þÎñÆ÷¼äµÄͨÐÅÊÇÎÞ״̬ÇÒ·ÇÁ¬½ÓµÄ¡£¶øÊµ¼ÊµÄÓ¦ÓóÌÐòÐèҪ״̬£¬ÒÔ±ãά»¤¶ÔÍ¬Ò»Ò³ÃæµÄºóÐøµ÷Óá£Ê¹ÓÃASP»òÆäËû·þÎñÆ÷¶Ë¿ª·¢Æ½Ì¨(ÈçJava Server PageºÍLAMPÒ»ÀàµÄ»ùÓÚLinuxµÄÏ ......
´ÓcsdnÏÂÔØÁËʹÓð¸Àý£¬µ«·¢ÏֺܶàÈËÒÀÈ»»áÓöµ½ÖÐÎÄÎļþÃûÂÒÂëµÄÎÊÌ⣬ÔÒòÈçÏ£º
Ò»°ãÔÚµ¥Î»µÄ¿ª·¢ÖÐÔÚxml.configÎļþÖж¼Ê¹ÓÃgb2312£¬ÈçÏ£º
<globalization responseEncoding="gb2312" requestEncoding="gb2312"/>
¶øswfuploadÊǰ´ÕÕutf-8À´±àÂëµÄ£¬ËùÒÔÄãÐèÒªÔÚʹÓÃsufuploadµÄ³ÌÐòÎļþĿ¼ÏÂÖØÐ ......
This server-based method is documented in the Visual Studio help files. Open the Help Index, and enter PrintToPrinter in the "Look for:" box. The syntax for this method is:
Report.PrintToPrinter(<copies as int>, <collated as True/False>, <startpage as int>, <endp ......
//TransmitFileʵÏÖÏÂÔØ
protected void Button1_Click1(object sender, EventArgs e)
{
/*
&n ......