ASP.NETÉÏ´«´óÎļþ½â¾ö·½°¸
Õâ´ÎÔÚÏîÄ¿ÖУ¬Óõ½ÁË´óÎļþÉÏ´«£¬ÒªÉÏ´«µÄÎļþÓÐ100¶àm£¬ÓÚÊÇÑо¿ÏÖÔÚ¹úÄÚʹÓõĴóÎļþÉÏ´«µÄ
×é¼þ·¢ÏÖÓõıȽ϶àµÄÓÐÁ½¸ö¿Ø¼þAspnetUpload 2.0ºÍLion.Web.UpLoadModule£¬ÁíÍ⻹ÓÐ˼¹éÔÚËüµÄ²©
¿ÍÌÃÖÐËù˵µÄ°ì·¨ http://blog.joycode.com/saucer/archive/2004/03/16/16225.aspx
Á½¸ö¿Ø¼þµÄ·½·¨ÊÇ£ºÀûÓÃÒþº¬µÄHttpWorkerRequest£¬ÓÃËüµÄGetPreloadedEntityBody ºÍ
ReadEntityBody·½·¨´ÓIISΪASP.NET½¨Á¢µÄpipeÀï·Ö¿é¶ÁÈ¡Êý¾Ý¡£Chris HynesΪÎÒÃÇÌṩÁËÕâÑùµÄÒ»¸ö
·½°¸(ÓÃHttpModule)£¬¸Ã·½°¸³ýÁËÔÊÐíÄãÉÏ´«´óÎļþÍ⣬»¹ÄÜʵʱÏÔʾÉÏ´«½ø¶È¡£
Lion.Web.UpLoadModuleºÍAspnetUpload Á½¸ö.NET×é¼þ¶¼ÊÇÀûÓõÄÕâ¸ö·½°¸¡£
µ±ÉÏ´«µ¥Îļþʱ£¬Á½¸öÈí¼þµÄ·½·¨ÊÇÒ»ÑùµÄ£¬¼Ì³ÐHttpModule
¸´ÖÆ ±£´æ
HttpApplication application1 = sender as HttpApplication;
HttpWorkerRequest request1
= (HttpWorkerRequest) ((IServiceProvider) HttpContext.Current).GetService
(typeof(HttpWorkerRequest));
try
{
if (application1.Context.Request.ContentType.IndexOf("multipart/form-data") <=
-1)
{
return;
}
//Check The HasEntityBody
if (!request1.HasEntityBody())
{
return;
}
in
Ïà¹ØÎĵµ£º
Ö÷Ìå¼Ü¹¹
¡¡¡¡¸÷ƵµÀ·Ö±ðλÓÚ²»Í¬µÄWeb Project(¾ßÓжÀÁ¢µÄ¶þ¼¶ÓòÃû)£¬²¢½«ËùÓеÄÒµÎñÂß¼ÒÔ¼°Êý¾Ý·ÃÎʹ¦ÄÜ·â×°³ÉClass Library£¬ËùÓÐƵµÀ¹²ÓÃÕâ¸öClass Library¡£
¡¡¡¡ÏÂÃæÏêϸ½éÉÜʵÏÖ·½·¨¡£
¡¡¡¡¼ÙÉèÍøÕ¾ÓÐÈý¸öƵµÀ£¬ÐÂÎÅ¡¢ÂÛ̳ÒÔ¼°²©¿Í£¬¶ÔÓ¦µÄ¶þ¼¶ÓòÃûΪ"news"¡¢"forum"¡¢"blog"¡£³ý´ËÖ®Í⣬»¹ÐèÒªÁ ......
ÅäÖÃASP.NETƽ̨ʱÓöµ½µÄ“·ÃÎÊIISÔªÊý¾Ý¿âʧ°Ü”²»ÖªµÀΪʲô½ñÌìÎÒµÄIISÍ£Ö¹ÁË£¬Í£Ö¹ÁËÎÒ¾ÍÆô¶¯Ï°ѣ¬¿ÉÊÇÆô¶¯²»ÆðÀ´Ñ½£¬ÄÇÔõô°ìѽ£¬Îʰٶȣ¬È˼Ò˵µÄÓиö·þÎñworld wide web Publishing ·þÎñ£¬¿ÉÊÇÎÒ»ú×ÓÉÏÁ¬Õâ¸ö·þÎñ¶¼Ã»ÓУ¬Ã»°ì·¨ÕÒ°Ñ£¬ÕÒÁË°ëÌìûÕÒµ½£¬Ö»ÓдÓа²×°ÁË£¬°²×°Á˺ÃÁË£¬Æô¶¯ÁË£¬ÓÖ³öÏ ......
Dim strScript As String = "<Script Language='VBScript'>" &vbCrLf
strScript &= "opener.parent.document.location.href=""" &"../Individual/UserJobs.aspx?EntityTableID=" &Request("EntityTableID") &"&ListID=" &BLL.TableType.Entity &"&OrgID=" &Request ......
Public DataTable GetDataTablefromExcel(string fileName,string tableName )
{
string connStr = "Provider=Microsoft.ACE.OLEDB.12.0; Persist Security Info=False;Extended Properties=Excel 8.0; data source=Îļþ·¾¶"
string sql = "SELECT * from [" + tableName + "]";
OleDbConnection conn = ne ......
1¡¢Ê×ÏÈÏÂÔØowc11£ºowc11(http://www.svnhost.cn/Download/Detail-60.shtml)
2¡¢ÒýÓÃOWC£º´ò¿ª"½â¾ö·½°¸×ÊÔ´¹ÜÀíÆ÷"Ãæ°å£¬Êó±êÓÒ¼üµ¥»÷"ÒýÓÃ"£¬Ñ¡Ôñ"Ìí¼ÓÒýÓÃ"²Ëµ¥£¬ÔÚµ¯³öµÄ"Ìí¼ÓÒýÓÃ"¶Ô»°¿òÖе¥»÷"COM"¿¨Æ¬£¬ÕÒµ½"Microsoft Office Web Components 10.0(office 2003ÊÇ11.0)"£¬µ¥»÷"Ñ¡Ôñ"ºÍ"È·¶¨"°´Å¥£¬OWC¾Í±»Ìí¼Óµ½ÁËÒý ......