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

asp.netÍøÒ³¾²Ì¬»¯

Ò»¡£¢Ù£ºÊ×ÏÈÒªÓÐÕâ¸öÎļþURLRewriter.dll,Èç¹ûûÓÐ,¸Ï¿ìµ½ÍøÉÏÏÂÔØÒ»¸ö,²¢½«Æä·Åµ½ÏÂÃæµÄbinĿ¼ÀïÃæ,²¢ÇÒ½«ÆäÒýÓÃÌí¼Óµ½ÏÂÃæÀïÃæ;
  ¢Ú£ºÏÂÃæ¾ÍÊÇWeb.ConfigÎļþµÄÅäÖÃÁË,µ±È»,ÅäÖùý³ÌÏ൱¼òµ¥£º
  1£ºÏÈÌí¼ÓÕâ¸ö
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>
<RewriterConfig>
  <Rules>
  <!-- Rules for Blog Content Displayer -->
  <RewriterRule>
  <LookFor>~/(.[0-9]*)\.html</LookFor>
  <SendTo>~/ArticleDetail.aspx?MyID=$1</SendTo>
  </RewriterRule>
  </Rules>
</RewriterConfig>
  2£ºÔÙÌí¼ÓÕâ¸ö
  <httpHandlers>
  <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
  <add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
  </httpHandlers>
  ÖÁ´Ë,Òѳɹ¦Ò»´ó°ë,ÉÏÃæÁ½¸ö¶¼Ìí¼Óµ½Web.Config,Ìí¼Óµ½Ê²Ã´Î»Öÿ´À´Ã»±ØÒª½²ÁË£¡
  ×îºóÒ»²½£ºÔÚIISÖÐÕÒµ½×Ô¼ºµÄÐéÄâĿ¼ÍøÕ¾,µãÊôÐÔ,È»ºóµãÅäÖÃ,È»ºóµ¯³öÓ¦ÓóÌÐòÅäÖöԻ°¿ò,Ñ¡ÔñÌí¼Ó,Ìí¼ÓµÄ¿ÉÖ´ÐÐÎļþ·¾¶Îªc:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll,À©Õ¹ÃûΪ.html£¨Èç¹ûÊÇÐéÄâÖ÷»ú£¬¿É¹ºÂòʹÓþÅÍø»¥ÁªµÄÖ÷»ú£¬¿ÉÖ±½ÓÔÚÏß²Ù×÷¿ªÍ¨Î±¾²Ì¬
¶þ¡£
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
namespace Web.Admin
{
public partial class Admin_MakeIndex : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
CommFun.IsAdmin();
if (!IsPostBack)
{
string url = Request.Url.AbsoluteUri.Substring(0, Request.Url.AbsoluteUri.LastIndexOf("/admin"))


Ïà¹ØÎĵµ£º

Asp.Net MVCÖÐÉí·ÝÈÏÖ¤ºÍÊÚȨ

MVC×Ô´øµÄActionFilter
ÔÚAsp.Net WebFormµÄÖÐÒª×öµ½Éí·ÝÈÏ֤΢ÈíΪÎÒÃÇÌṩÁËÈýÖÖ·½Ê½£¬ÆäÖÐ×î³£ÓõľÍÊÇÎÒÃǵÄFormÈÏÖ¤£¬ÐèÒªÅäÖÃÏàÓ¦µÄÐÅÏ¢¡£ÀýÈçÏÂÃæµÄÅäÖÃÐÅÏ¢£º
<authentication mode="Forms">
<forms loginUrl="Login.aspx" defaultUrl="Default.aspx" protection="All" />
</authenticati ......

asp.net ÖÐµÄ URLÖØд

URL ÖØдÊǽØÈ¡´«Èë Web ÇëÇó²¢×Ô¶¯½«ÇëÇóÖض¨Ïòµ½ÆäËû URL µÄ¹ý³Ì¡£
   ±ÈÈçä¯ÀÀÆ÷·¢À´ÇëÇóhostname/101.aspx £¬·þÎñÆ÷×Ô¶¯½«Õâ¸öÇëÇóÖж¨ÏòΪhttp://hostname/list.aspx?id=101¡£
urlÖØдµÄÓŵãÔÚÓÚ£º
     Ëõ¶Ìurl£¬Òþ²Øʵ¼Ê·¾¶Ìá¸ß°²È«ÐÔ
     Ò×ÓÚÓû§¼ÇÒäºÍ¼ ......

asp.net ¶¯Ì¬treeview

js code //Ö÷Òª¹¦ÄÜÊÇʵÏÖ¸´Ñ¡¿òµÄÈ«Ñ¡Ôñ¸ú·ÇÈ«Ñ¡
<script type="text/javascript" defer="defer">
        function OnTreeNodeChecked() {
            var ele = event.srcElement;
    &nbs ......

asp.netµÄÒ»¸ödbhelperÀà

using System;
using System.Collections;
using System.Collections.Specialized;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections.Generic;
using System.Text;
namespace Maticsoft.DBUtility
{
     /// <summary>
  ......

ASP.NET ViewState ¼ò½é

  ASP.NET ViewState ÊÇÒ»ÖÖеÄ״̬·þÎñ£¬¿É¹©¿ª·¢ÈËÔ±»ùÓÚÿ¸öÓû§À´¸ú×Ù UI ״̬£¬¸Ã¸¨ÖúÊý¾Ý±»´æ´¢ÔÚÒ»¸öÃûΪ __VIEWSTATE µÄÒþ²Ø×Ö¶ÎÖС£
    µ±È»£¬ ViewState ÔÚ ASP.NET ÖÐÓиöÖØÒªµÄ½ÇÉ«¡£Èç¹ûʹÓÃÇ¡µ±£¬ËüÄܹ»¼ò»¯Ò³Ã濪·¢£¬¸Ä½øÓû§ÓëÕ¾µãµÄ½»»¥¡£Èç¹ûÖÃÖ®²»Àí£¬ËüÄܹ»ÏÔÖøÔö¼ÓÕ¾µãÏìÓ¦´óÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ