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&
Ïà¹ØÎĵµ£º
ÔÚÒ»¸ö
route
ÖУ¬Í¨¹ýÔÚ´óÀ¨ºÅÖзÅÒ»¸öռλ·ûÀ´¶¨Òå
(
{ and } )
¡£µ±½âÎö
URL
µÄʱºò£¬·ûºÅ
"/"
ºÍ
"."
±»×÷Ϊһ¸ö¶¨Òå·ûÀ´½âÎö£¬¶ø¶¨Òå·ûÖ®¼äµÄÖµÔòÆ¥Å䵽ռλ
·ûÖС£
route
¶¨ÒåÖв»ÔÚ´óÀ¨ºÅÖеÄÐÅÏ¢Ôò×÷Ϊ³£Á¿Öµ¡£
ÏÂÃæÊÇһЩʾÀý
URL
£º
Valid route definitions
Example ......
ÕâÀïÊÇÎÒµÄÒ»¸ö¼òµ¥µÄjquery+jsonµÄÁ¬¿â²Ù×÷£¬Ö»ÊÇÒ»¸ö¼òµ¥²éѯ£¬
//ºǫ́´úÂë
<%@ WebHandler Language="C#" Class="show" %>
using System;
using System.Web;
using System.Collections.Generic;
using Model;
using DAL;
using System.Web.Script.Serialization;
public class show ......
System.Drawing.Image imgPhoto = System.Drawing.Image.fromFile("ͼƬ·¾¶Ãû");
int sourceWidth = imgPhoto.Width; //ͼƬ¿í¶È
int sourceHeight = imgPhoto.Height; //ͼƬ¸ß¶È
¿Ø¼þÃû.PostedFile.ContentLength &n ......
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Data.Common;
using System.Data;
namespace DownData.dal
{
public static class DBHelper
{
private stati ......
ASP.NET CacheÖ§³ÖÈýÖÖÀàÐÍ
Ïëдһ¸ö¼¼Êõ¿ìËÙ¸ÅÊö£¬¿ÉÄÜдµÃÌ«¶àÁË¡£¼¼Êõ¸ÅÂÔµÄÄ¿µÄÊÇÒÔ×î¿ì×î¼òµ¥µÄ·½Ê½ÃèÊö³ö¼¼ÊõÒªµã£¬Ò²ÊÇÎÒÏ£ÍûµÄ×îÓÐЧÂʵÄ֪ʶ´«²¥·½Ê½¡£
1£® Ò³Ãæ/¿Ø¼þcache
2£® Ó¦ÓóÌÐò¼¶cache
3£® ä¯ÀÀÆ÷¿Í»§¶Ëcache
´ÓʵÏÖ·½Ê½À´¿´£¬ASP.NET CacheÖеÄÒ³Ãæ/¿Ø¼þcacheºÍÓ¦ÓóÌÐò¼¶cache¶¼ÊÇ´æ·ÅÔÚ·þÎñÆ÷ÄÚ´ ......