Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.netÕ¾µãURLRewriteС¼Ç

asp.netµÄµ×²ãÔË×÷ÒѾ­Ò²ÂÒ̸¹ýÒ»·¬£¬ ½ñÌì¼ÇÒ»ÏÂURLRewriteµÄ·½·¨¡£
IISÊÕµ½ÇëÇó-->ISAPIÓÃÓÚ´¦Àí¸ÃÇëÇó-->BeginRequest¿ªÊ¼-->EndRequest½áÊø-->Êä³öResponse
ÖмäÓкöàÆäËüµÄÁ÷³Ì¾Í²»±ê¼ÇÁË£¬ÕâÀïÖ»ÊÇÁгöURLRewriteËù×ßµÄÁ÷³Ì¡£
Æäʵ¾ÍÊÇÔÚBeginRequestʼþÖе÷ÓÃHttpContextµÄRewritePath·½·¨£¬½«¸ÃÇëÇóÖØГ¶¨Î»”ÖÁÒ»¸öÄ¿±êURL¾ÍÍê³ÉÁË¡£
ÔÚÕ¾µãµÄGlobal.asaxÎļþBeginRequest·½·¨ÖÐÌí¼Ó´úÂ룺
public class Global : System.Web.HttpApplication
{
    protected void Application_BeginRequest(object sender, EventArgs e)
    {
        HttpContext context = HttpContext.Current;
 
        if (context.Request.Path.Equals("/demo", StringComparison.InvariantCultureIgnoreCase))
        {
            context.RewritePath("~/demoList.aspx");
        }
    }
}


Ïà¹ØÎĵµ£º

ASP.NET


      ¿ÉÒÔʹÓà SqlDataSource ¿Ø¼þÐÞ¸ÄÊý¾Ý¿âÖеÄÊý¾Ý¡£Ê¹Óøüз½°¸ÖÐµÄ SqlDataSource ¿Ø¼þµÄ×î³£Ó÷½·¨ÊǼìË÷Êý¾Ý²¢Ê¹ÓÃÊý¾Ý°ó¶¨ Web ·þÎñÆ÷¿Ø¼þ£¨Èç GridView¡¢DetailsView »ò FormView ¿Ø¼þ£©ÏÔʾÊý¾Ý¡£¿ÉÒÔÅäÖÃÊý¾Ý°ó¶¨¿Ø¼þºÍ SqlDataSource ÒÔ¸üÐÂÊý¾Ý¡£´ó¶àÊýÊý¾Ý°ó¶¨¿Ø¼þ¶¼ÔÊÐíÄú½«Æä ......

asp.netµ¼³öExcel/Csv¸ñʽÊý¾Ý×îÓÅ·½°¸£¨C#£©

[ת]asp.netµ¼³öExcel/Csv¸ñʽÊý¾Ý×îÓÅ·½°¸£¨C#£©
±¾ÎÄת×Ô£ºhttp://www.cnblogs.com/lovenets2008/archive/2008/05/06/1184234.html
Ô­ÎÄÈçÏ£º
 
ºÃ¾ÃûÓÐдµãʲôÁË£¬Ò²ÐíÊÇ̫æ¡£Ò»ÄêÁË£¬»ýÀÛÁ˲»ÉٺõĶ«¶«£¬Óлú»áʱ¾Íд³öÀ´Óë´ó¼Ò·ÖÏí¡£
ºÃ£¬ÑÔ¹éÕý´«¡£
µ¼³öµ½Excel/CscÎļþ²¢²»ÄÑ£¬ËùÒÔ¾ÍÓкö෽·¨£ ......

¡¾×ªÌù¡¿ASP.NETË¢ÐÂÒ³ÃæµÄÁùÖÖ·½·¨

Ô­Îijö´¦£ºhttp://www.cnblogs.com/raymond19840709/archive/2007/09/11/890045.html
×÷Õߣº´ó¿Ú×Ð
µÚÒ»£º 
private void Button1_Click( object sender, System.EventArgs e )   

    Response.Redirect( Request.Url.ToSt ......

¶àƵµÀÍøÕ¾¼Ü¹¹ÊµÏÖ·½·¨ (asp.net C#)

Ö÷Ìå¼Ü¹¹
¡¡¡¡¸÷ƵµÀ·Ö±ðλÓÚ²»Í¬µÄWeb Project(¾ßÓжÀÁ¢µÄ¶þ¼¶ÓòÃû)£¬²¢½«ËùÓеÄÒµÎñÂß¼­ÒÔ¼°Êý¾Ý·ÃÎʹ¦ÄÜ·â×°³ÉClass Library£¬ËùÓÐƵµÀ¹²ÓÃÕâ¸öClass Library¡£
¡¡¡¡ÏÂÃæÏêϸ½éÉÜʵÏÖ·½·¨¡£
¡¡¡¡¼ÙÉèÍøÕ¾ÓÐÈý¸öƵµÀ£¬ÐÂÎÅ¡¢ÂÛ̳ÒÔ¼°²©¿Í£¬¶ÔÓ¦µÄ¶þ¼¶ÓòÃûΪ"news"¡¢"forum"¡¢"blog"¡£³ ......

asp.netÎļþÏÂÔØ[ת]

1 public partial class FileDownLoad : System.Web.UI.Page   
  2     {   
  3         //ÌṩÏÂÔصÄÎļþ£¬²»±àÂëµÄ»°ÎļþÃû»áÂÒÂë   
&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ