ASP.NETÊý¾Ý¿âµ¼ÈëExcel
StringWriter sw = new StringWriter();
sw.WriteLine("·ÃÎʹºÂòÂÊ");
sw.WriteLine("ÅÅÐÐ\tÉÌÆ·Ãû³Æ\tÈËÆøÖ¸Êý\t¹ºÂò´ÎÊý\t·ÃÎʹºÂòÂÊ");
int i = 0;
foreach (ProductSaleInfo productSale in productSaleList)
{
i = i + 1;
sw.WriteLine(i.ToString() + "\t" + productSale.Name.ToString() + "\t" + productSale.ViewCount.ToString() + "\t" + productSale.SaleCount.ToString() + "\t" + XWXCommon.ProductBuyRate(productSale.ViewCount.ToString(), productSale.SaleCount.ToString()));
}
sw.Close();
Response.Clear();
Response.Buffer = true;
Response.Charset = "GB2312";
Response.AppendHeader("Content-Disposition&
Ïà¹ØÎĵµ£º
ϵͳ¼òµ¥½éÉÜ£º
ºÜ±ê×¼µÄÅäÖãºasp.net 2.0+SqlServer 2000 or 2005,һЩͳ¼ÆÍ¼²ÉÓõÄÊÇflash¼¼Êõ~¸Õ±ÏÒµµÄʱºòÔÚÒ»¼Òµç×ÓÕþÎñ¹«Ë¾¹¤×÷ʱ¿ª·¢µÄ£¬ÕâÌ×ϵͳǿ¾ÍÇ¿ÔÚËü²»ÊÇÓ¦ÓÃϵͳ£¬¶øÊÇÒ»¸ö¹¤¾ß£¬¿ÉÒÔÔڴ˹¤¾ß»ù´¡ÉÏ£¬¾¹ý¶þ´Î¿ª·¢£¬ÑÜÉú³öÂú×ãÕþ¸®²¿ÃÅÐÅÏ¢»¯ÐèÇóµÄÓ¦ÓÃϵͳ£¡£¡
Õ ......
ÔÚÃæÊÔµÄʱºò£¬¾³£»áÓöµ½ÕâÑùµÄÎÊÌ⣬ÆäʵÎÒÃÇ»á¶ÔÆäÖеļ¸ÖÖ·½·¨±È½ÏÊìϤ£¬ÒòΪÏîÄ¿Öо³£Ê¹Óᣵ«ÊÇÒªÈ«ÃæµÄ»Ø´ðASP.NETÖÐÒ³Ãæ´«ÖµµÄ·½Ê½£¬¹À¼ÆÍùÍùºÜÄÑÈ«Ãæ¡£
Ò».
ʹÓÃQueryString±äÁ¿
¡¡¡¡¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥Ò²ÊÇʹÓñȽ϶àµÄÒ»ÖÖ´«Öµ·½Ê½£¬µ«ÊÇËü½«´«µÝµÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖÐ,Èç¹ûÊÇ´«µÝÒ»¸ö»ò ......
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 ......
ÔÚASPÖУ¬½«ÎļþÉÏ´«µ½·þÎñÆ÷ÊÇÒ»¼þ·Ç³£Âé·³µÄÊÂÇ飬ͨ³£ÐèÒªµÚÈý·½×é¼þµÄÖ§³Ö¡£
ÔÚASP.NET 1.x ÖУ¬ÒªÖ§³ÖÎļþÉÏ´«£¬Ö»ÐëʹÓÃHTMLµÄInput(File)¿Ø¼þ¡£°ÑËü×÷Ϊ·þÎñÆ÷¿Ø¼þÔËÐУ¨ÊÖ¶¯ÉèÖÃrunat="server"£© £¬ÒªÖ±½Ó²Ù×÷ HttpPostedFile¡£
ÔÚASP.NET 2.0ÖУ¬ÐÂÔöÁËFileUpLoad·þÎñÆ÷¿Ø¼þ£¬Ê¹µÃÉÏ´«¸ü¼Ó¼òµ¥¡£
°ü& ......