ASP.NET ÈçºÎʵÏÖα¾²Ì¬
ÆäʵËùνµÄα¾²Ì¬Ò³Ãæ,¾ÍÊÇÖ¸µÄURLÖØд.
1.Ê×ÏÈÔÚweb.configÀïд
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
</configSections>
2.ÔÚweb.configÀïÌí¼ÓÒÔϽڵã
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
<add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
</httpHandlers>
3.ÅäÖÃÖØдURL¹æÔò (ÕâÀïÎÒÃǾÍÒÔ *.htmlתµ½*.aspxΪÀý×Ó£¬µ±È»Ò²¿ÉÒÔʵÏÖ http://www.a.com/a-1.html תµ½ http://www.a.com/a.aspx?id=1 ÕâÖÖÐÎʽ),
ÔÚconfiguration ¼ÓÈëһϽڵã
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/(.*).html</LookFor>
<SendTo>~/$1.aspx</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
4.ÕâÒ»²½ Ò²ÊÇ×îÖØÒªµÄÒ»²½¡£ÔÚiis ÖÐÓÒ¼üÏîÄ¿→ÊôÐÔ→Ö÷Ŀ¼→ÅäÖÃ→Ó³Éä→Ìí¼Ó
¿ÉÖ´ÐÐÎļþÀïÃæÊäÈë c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll£¬
À©Õ¹ÃûÊäÈë .html
È»ºóÔÙ°Ñ È·ÈÏÎļþÊÇ·ñ´æÔÚ Ç°ÃæµÄ¹³¹³È¥µô¡£(Õâ²½ºÜÖØÒª£¬²»È»»á±¬404µÄ´íÎó)
ÈçÏÂͼËùʾ:
5.ÄúÐèÒªÔÚÄãµÄÏîÄ¿ÖÐÒýÓà URLRewriter.dll Õâ¸ödllÎļþ ¡£
ÏÂÔصØÖ·£º http://download.csdn.net/source/2325865
6.ÕâÑù ¾ÍÅäÖÃÍêÁË£¬¼ÙÉè ÄãÓÐ http://192.168.0.2/index.aspx Õâ¸öÒ³ÃæµÄ»°¡£
ÄÇôÄãÔÚä¯ÀÀÆ÷ÖÐÊäÈë http://192.168.0.2/index.html ¾Í¿´µ½Ð§¹ûÁË.
×¢£ºÒÔÉÏ ÊÇÔÚ server2003 iis 6.0 framework2.0 ÏÂÅäÖõġ£
¸½ÉÏ ÍêÕûµÄWeb.Config´úÂë°É
<?xml version="1.0"?>
<configuration>
<!--1-->
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="true"/>
<authenti
Ïà¹ØÎĵµ£º
ÔÚWindows NTÖУ¬Í¼ÐζàýÌåϵͳ»ùÓÚ²ã´Î½á¹¹¡£Ó¦ÓóÌÐòÓ붥²ãµÄAPI£¨Êµ¼ÊÉÏÊǶà¸öÓû§Ä£Ê½µÄϵͳDLL£¬±ÈÈçGDI32.DLL£©½»»¥£¬ÕâЩϵͳDLL×îÖÕ»áͨ¹ýϵͳ·þÎñµ÷Óô¦ÓÚÄÚºËģʽµÄϵͳ·þÎñ¡£
NTϵͳµÄÏêϸÐÅÏ¢¿É²Î¿¼¡¶Windows ͼÐαà³Ì¡·µÄµÚÒ»¡¢¶þÕ¡£ÔÚWindows VistaÖУ¬Í¼ÐÎϵͳÒѾÒƳöÁËÄÚºËģʽ£¬²¢ÓÐ×Ô¼ºµÄ¿Õ¼ä ......
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>
  ......
1 ÈçºÎÔÚÌá½»ºó·ÀÖ¹µ¯³öд°¿Ú
2 ÔÚģ̬´°¿ÚÖÐÔٴε¯³öģ̬´°¿Ú
3 ģ̬´°¿Ú·µ»ØÖµ
4 ˢи¸´°¿Ú
5 ¸¸´°¿ÚÈçºÎÌí¼Óˢнű¾
Ö÷´°¿Úµ¯³öÒ»¸öģ̬´°¿Ú,
var firstDiag = window.showModalDialog(url,window,"center:yes;dialogWidth:300px;dialogHeight:400px");
×¢:ÔÚurlÎļþµÄhead¼ÓÈë <base target='_self'> ¾ ......
ASP.NET ViewState ÊÇÒ»ÖÖеÄ״̬·þÎñ£¬¿É¹©¿ª·¢ÈËÔ±»ùÓÚÿ¸öÓû§À´¸ú×Ù UI ״̬£¬¸Ã¸¨ÖúÊý¾Ý±»´æ´¢ÔÚÒ»¸öÃûΪ __VIEWSTATE µÄÒþ²Ø×Ö¶ÎÖС£
µ±È»£¬ ViewState ÔÚ ASP.NET ÖÐÓиöÖØÒªµÄ½ÇÉ«¡£Èç¹ûʹÓÃÇ¡µ±£¬ËüÄܹ»¼ò»¯Ò³Ã濪·¢£¬¸Ä½øÓû§ÓëÕ¾µãµÄ½»»¥¡£Èç¹ûÖÃÖ®²»Àí£¬ËüÄܹ»ÏÔÖøÔö¼ÓÕ¾µãÏìÓ¦´óÐ ......
ÔÚʹÓÃasp.net±àдwebserviceʱ£¬Ä¬ÈÏÇé¿öÏÂÊDz»Ö§³ÖsessionµÄ£¬µ«ÎÒÃÇ¿ÉÒÔ°ÑWebMethodµÄEnableSessionÑ¡ÏîÉèΪtrueÀ´ÏÔʽµÄ´ò¿ªËü£¬Çë¿´ÒÔÏÂÀý×Ó£º
1 н¨ÍøÕ¾WebSite
2 н¨web·þÎñWebService.asmx£¬Ëü¾ßÓÐÒÔÏÂÁ½¸ö·½·¨£º
[WebMethod(EnableSession = true)]
public string Login(string name)
{
  ......